Coder powers secure, scalable development across key industries — automotive, finance, government, and technology — enabling faster builds, tighter compliance, and seamless AI adoption in enterprise-grade cloud environments.
Create or update a template from the current directory or as specified by flag
Usage
coder templates push [flags] [template]
Options
--variables-file
Property
Value
Type
string
Specify a file path with values for Terraform-managed variables.
--variable
Property
Value
Type
string-array
Specify a set of values for Terraform-managed variables.
--var
Property
Value
Type
string-array
Alias of --variable.
--provisioner-tag
Property
Value
Type
string-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
Property
Value
Type
string
Specify a name for the new template version. It will be automatically generated if not provided.
--always-prompt
Property
Value
Type
bool
Always prompt all parameters. Does not pull parameter values from active template version.
--activate
Property
Value
Type
bool
Default
true
Whether the new template will be marked active.
--display-name
Property
Value
Type
string
Specify a display name for the template. Takes precedence over display_name in README.md front matter, if present.
--icon
Property
Value
Type
string
Specify an icon path or external URL for the template. Takes precedence over icon in README.md front matter, if present.
-y, --yes
Property
Value
Type
bool
Bypass confirmation prompts.
-d, --directory
Property
Value
Type
string
Default
.
Specify the directory to create from, use '-' to read tar from stdin.
--ignore-lockfile
Property
Value
Type
bool
Default
false
Ignore warnings about not having a .terraform.lock.hcl file present in the template.
-m, --message
Property
Value
Type
string
Specify a message describing the changes in this version of the template. Messages longer than 72 characters will be displayed as truncated.