Using a CodeSmith Project from Command-Line

Introduction

Since a CodeSmith project contains all necessary metadata to run the execution of the most complicated of code generation projects.  It makes it possible to call your CodeSmith Project through any batch file, command-prompt, or any application that let's you launch a process with arguments.

The CodeSmith Console Application supports these command-line switches:

Input Options

<file> Project File to be used for generation

/property:<name>=<value> or /p:<name>=<value>     Assign a property value from the command line. Only property types which support conversion to and from string can be assigned in this way.

Compiler Options

/debug[+|-]    Emit (or suppress) debugging information (allows attaching a debugger to a running template)

/tempfiles[+|-]     Keep (or delete) temporary files (if debug is on then tempfiles will also automatically be on)

Miscellaneous Options

/verbose or /v    Display verbose messages

/help or /?     Display usage information

/nologo    Suppress generator copyright message