Template Submit#
Command: template submit
Shorthands: t s
The template submit command is used to create a new Template structure(s). The template can be created by providing a name argument or using the --file flag to specify the path to a configuration file.
Usage#
Arguments#
Flags#
See Global flags and Common flags
| Name | Datatype | Required | Default | Description |
|---|---|---|---|---|
--file, -f | file | true | "" | Create template(s) from manifest file |
--file#
- Aliases
-f - Datatype:
file - Type:
text - Schema: SharedTemplateObjectModel, CodeTemplateObjectModel, FileTemplateObjectModel
- Multiplicity: Optional
- Description: New template manifest file location
- Valid Values:
current_folder,absoulute_path_to_folder,absoulute_path_to_file,relative_path_to_folder,relative_path_to_file
When both
name argument and --file flag are provided, the command will prioritize the name argument for template creation.
Usage
The --file flag is used to specify the path to directories or files. It supports various forms of paths including current directory (.), relative paths, absolute paths, and specific files. This flag can be used one or more times within a command.
Notes
- The
--fileflag can be repeated multiple times to specify multiple paths. - Ensure that the paths provided with the
--fileflag are accessible and the configuration file is valid to avoid errors during command execution. - The
--fileflag can be used to automate the creation of templates with predefined configurations.
Supported Path Formats
-
Current Directory (
.): Specifies the current working directory from which the command is being executed. This is useful for operations that need to be performed in the current directory without specifying the full path. -
Relative Directory or File: Specifies a path relative to the current working directory. This allows for flexibility in specifying paths without needing the full directory structure.
-
Absolute Directory or File: Specifies the full path to a directory or file, starting from the root of the filesystem. This is useful when the exact location of the file or directory is known.
Tip
You can use suggestions to list available paths. To do this, simply press Tab to proceed. For more details, please visit our Path Autocompletion and Filtering Guide.
Example
Specify Current Directory
SeedFileYaml_Template Template created SeedFileJson_Template Template created SeedFileTxt_Template Template created
Specify a Relative Directory
SeedFileYaml_Template Template created SeedFileJson_Template Template created SeedFileTxt_Template Template created
Specify a Relative File
SeedFileYaml_Template Template created
Specify an Absolute Directory
SeedFileYaml_Template Template created SeedFileJson_Template Template created SeedFileTxt_Template Template created
Specify an Absolute File
SeedFileYaml_Template Template created
Specify Multiple Files or Directories
pars template submit --file ./samples/SeedFileYamlTemplate.yaml --file ./samples/SeedFileJsonTemplate.yaml
SeedFileYaml_Template Template created SeedFileJson_Template Template created