Using the CodeSmith Generator Console Application covers the following sections:
Incorporating Generator into Your Build Process
Using a CodeSmith Generator Project from Command-Line
Basic Console Application Usage
Handling Input
Handling Output