Skip to content
Skip to Content
Coder Docs

coder templates push

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

On this page

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

Usage

Usage
coder templates push [flags] [template]

Options

Options

--variables-file

--variables-file
PropertyValue
Typestring

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

--variable

--variable
PropertyValue
Typestring-array

Specify a set of values for Terraform-managed variables.

--var

--var
PropertyValue
Typestring-array

Alias of --variable.

--provisioner-tag

--provisioner-tag
PropertyValue
Typestring-array

Specify a set of tags to target provisioner daemons. If you do not specify any tags, the tags from the active template version will be reused, if available. To remove existing tags, use --provisioner-tag="-".

--name

--name
PropertyValue
Typestring

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

--always-prompt

--always-prompt
PropertyValue
Typebool

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

--activate

--activate
PropertyValue
Typebool
Defaulttrue

Whether the new template will be marked active.

--display-name

--display-name
PropertyValue
Typestring

Specify a display name for the template. Takes precedence over display_name in README.md front matter, if present.

--icon

--icon
PropertyValue
Typestring

Specify an icon path or external URL for the template. Takes precedence over icon in README.md front matter, if present.

-y, --yes

-y, --yes
PropertyValue
Typebool

Bypass confirmation prompts.

-d, --directory

-d, --directory
PropertyValue
Typestring
Default.

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

--ignore-lockfile

--ignore-lockfile
PropertyValue
Typebool
Defaultfalse

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

-m, --message

-m, --message
PropertyValue
Typestring

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

-O, --org

-O, --org
PropertyValue
Typestring
Environment$CODER_ORGANIZATION

Select which organization (uuid or name) to use.