CDL is limited to a set of operations in a specific order. Slope(multiply/gain), Offset and Power(gamma) and Saturation.
Here is the formula for it from wikipedia, though it is missing saturation so it is the old CDL format.
You can bake a lut but CDL depends on what you are doing in the grade node it may or may not translate. I would have to check the order of operations the grade node does them in. Why not just use the OCIOCDLTransform node to do the actual color correction if you want to output a CDL? It has all the controls you can modify by hand.