tms spec
Creates a new tmsbuild.yaml product definition file.
Synopsis
tms spec [<options>] [<global-options>]
Description
Generates a tmsbuild.yaml file that describes a product so it can be built and distributed with Smart Setup. By default, the command runs interactively: it scans the current directory for .dproj files, asks questions about the product ID, name, supported IDEs, and dependencies, and writes the resulting file.
Run this command from the root folder of the product whose packages you want to describe. The .dproj files in the folder tree are used to populate the package and platform configuration automatically.
Use -non-interactive to skip all prompts and generate a default file that can be edited manually or populated using -spec (-s) parameters.
The -s parameters are applied after loading the template (if any), and before the interactive questions. They use the same syntax as the -p parameter. See the -p syntax for details. Arrays can contain other arrays, so you can define packages from the command line, as in -s:"packages=[Example_Core:[runtime,vcl]]".
Options
| Option | Description |
|---|---|
-non-interactive |
Creates a default tmsbuild.yaml without prompting. Edit the file manually or use -s to supply values. |
-template:<file> |
Loads initial values from an existing tmsbuild.yaml before prompting or applying -s overrides. |
-spec:<key=value> / -s:<key=value> |
Sets a specific property in the output tmsbuild.yaml. Can be specified multiple times. Uses the same key syntax as -p but targets the product spec instead of the configuration. |
-json |
Saves the output in JSON format. The resulting file cannot be read by Smart Setup, but is useful for querying values with a JSON parser. |
-cmd |
Saves the output as a command file listing the -s parameters needed to regenerate it. Useful for scripting. |
-output-file:<file> |
Sets the file to create. Relative paths are resolved against the current folder, and missing folders are created. The name is used as given: -json and -cmd don't change its extension. In interactive mode, this is the default answer to the "File to be created" question. If omitted, the file is tmsbuild.yaml in the current folder (tmsbuild.json with -json, tmsbuild.cmd with -cmd). |
Global Options
See Global Options for options available to all commands.
Examples
Runs the interactive wizard to create a tmsbuild.yaml in the current folder:
tms spec
Creates a default file non-interactively:
tms spec -non-interactive
Creates a file based on an existing template, overriding the product ID:
tms spec -template:existing.tmsbuild.yaml -s:application:id=myorg.myproduct
Creates a file without a template, setting the product ID and the packages from the command line:
tms spec -non-interactive -s:application:id=myorg.myproduct -s:"packages=[Example_Core:[runtime,vcl],Example_Design:[design,vcl]]"
Creates a default file non-interactively and saves it in a different folder:
tms spec -non-interactive -output-file:build\tmsbuild.yaml