wpfthemedesigner-401518-command-line.md
The Theme Designer Command Line Interface (CLI) allows you to clone and export theme solutions. Use the CLI on a build server and then build the theme solution with msbuild.
Use the CLI link in the Theme Designer’s About tab to open the CLI folder in the File Explorer.
Tip
tdcli.exe is in the %LocalAppData%\ThemeDesigner\app-<ThemeDesignerBuild>\CLI folder.
Export the Theme Designer solution with embedded palette colors as a Visual Studio Solution. Use msbuild to build the exported theme solution.
export <source> <target>
| Argument | Alias | Description |
|---|---|---|
| –source | -s | Specifies the path to the Theme Designer solution file (.tdsln). |
| –target | -t | Specifies the directory to which you want to export a theme. The target folder should be empty. |
Clone the selected Theme Designer solution and assign a new name to the solution.
clone <name> <source> <target>
| Argument | Alias | Description |
|---|---|---|
| –name | -n | Specifies the name of the cloned theme. |
| –source | -s | Specifies the path to the Theme Designer solution file (.tdsln). |
| –target | -t | Specifies the directory to which you want to export a theme. The target folder should be empty. |
Outputs the ThemeDesigner CLI version.
Use the Export command to create a ready-to-build theme solution:
Use the msbuild to create the theme assembly:
Tip
Topic : Apply a theme to an application
Use the Clone command to create a theme with the new theme name: