CMS Command Line Tool 
The CMS command line tool is an addition to the Change Management Service (CMS) Web User Interface. It allows you to perform the required administrative tasks in a shell-oriented environment.
For more information, see Starting Command Line Tools.
To get more information on a specific command (especially which arguments it takes) enter
help <command name>
and choose Enter.
The CMS command line tool writes user messages to the console. You can redirect user messages into a file by using the command logfile.
Example
The user messages will be redirected into the file useroutput.txt.
logfile -f useroutput.txt -m on --append
If you use the command logfile with option -m and parameter off, the user messages will be redirected back to the console.
Besides user messages there are also technical messages - that is the stack traces. The stack traces are useful in case of problems or errors.
These messages are not written to the console.
Example
The technical messages will be redirected into the file tracemsg.txt
tracefile --m on -f tracemsg.txt
If you use the command tracefile with option --sl, you can specify how detailed the trace messages should be.
More information: