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