All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Command Line Interface

  • 2 minutes to read

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.

Open CLI Folder

Use the CLI link in the Theme Designer's About tab to open the CLI folder in the File Explorer.

Theme Designer - CLI Link

TIP

tdcli.exe is in the %LocalAppData%\ThemeDesigner\app-<ThemeDesignerBuild>\CLI folder.

Commands

Export

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>

Arguments

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

Clone the selected Theme Designer solution and assign a new name to the solution.

clone <name> <source> <target>

Arguments

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.

Version

Outputs the ThemeDesigner CLI version.

Build a Theme

  1. Use the Export command to create a ready-to-build theme solution:

    CLI - Export Command

  2. Use the msbuild to create the theme assembly:

    CLI - MSBuild

Rename a Theme

Use the Clone command to create a theme with the new theme name:

CLI - Clone Command