coder/docs/cli/templates_push.md

2.3 KiB

templates push

Create or update a template from the current directory or as specified by flag

Usage

coder templates push [flags] [template]

Options

--variables-file

Type string

Specify a file path with values for Terraform-managed variables.

--variable

Type string-array

Specify a set of values for Terraform-managed variables.

--var

Type string-array

Alias of --variable.

--provisioner-tag

Type string-array

Specify a set of tags to target provisioner daemons.

--name

Type string

Specify a name for the new template version. It will be automatically generated if not provided.

--always-prompt

Type bool

Always prompt all parameters. Does not pull parameter values from active template version.

--activate

Type bool
Default true

Whether the new template will be marked active.

-y, --yes

Type bool

Bypass prompts.

-d, --directory

Type string
Default .

Specify the directory to create from, use '-' to read tar from stdin.

--ignore-lockfile

Type bool
Default false

Ignore warnings about not having a .terraform.lock.hcl file present in the template.

-m, --message

Type string

Specify a message describing the changes in this version of the template. Messages longer than 72 characters will be displayed as truncated.