Skip to content

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#

pars template submit [flags]

Arguments#

Flags#

Name Datatype Required Default Description
--file, -f file true "" Create template(s) from manifest file

--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 --file flag can be repeated multiple times to specify multiple paths.
  • Ensure that the paths provided with the --file flag are accessible and the configuration file is valid to avoid errors during command execution.
  • The --file flag 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

pars template submit --file .
SeedFileYaml_Template Template created
SeedFileJson_Template Template created
SeedFileTxt_Template Template created

Specify a Relative Directory

pars template submit --file ./samples/
SeedFileYaml_Template Template created
SeedFileJson_Template Template created
SeedFileTxt_Template Template created

Specify a Relative File

pars template submit --file ./samples/SeedFileYamlTemplate.yaml
SeedFileYaml_Template Template created

Specify an Absolute Directory

pars template submit --file C:/samples/
SeedFileYaml_Template Template created
SeedFileJson_Template Template created
SeedFileTxt_Template Template created

Specify an Absolute File

pars template submit --file C:/samples/SeedFileYamlTemplate.yaml
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