You can also use the

project-creator-cli

executable to create applications from a command-line prompt or from within batch files or shell scripts. The exit code for the CLI is zero if the operation is successful, or non-zero if the operation encounters an error. For Windows, use the modus-shell bash installed in the ModusToolbox™ "tools" directory. For macOS and Linux, use the appropriate bash for your system.

The

project-creator-cli

executable is located in the same directory as the GUI version of the tool (

<install_dir>/ModusToolbox/tools_<version>/project-creator/

). To see all the options available, run the tool with the

-h

option:

$ project-creator-cli -h

The following example shows running the tool with the basic options to specify a BSP and application:

$ project-creator-cli \
--board-id CY8CKIT-062-WIFI-BT \
--app-id mtb-example-psoc6-hello-world