Files
coder/docs/cli/templates_create.md
Ammar Bandukwala 2a01747804 feat(cli): add --var shorthand for --variable (#8710)
`--variable` is used frequently enough to deserve a shorthand. Unfortunately,
`-v` is taken by verbose, and `-V` is too easily confused with version or
verbose, so we're left with "--var".
2023-07-25 14:36:02 +00:00

2.8 KiB
Generated

templates create

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

Usage

coder templates create [flags] [name]

Options

--default-ttl

Type duration
Default 24h

Specify a default TTL for workspaces created from this template.

-d, --directory

Type string
Default .

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

--failure-ttl

Type duration
Default 0h

Specify a failure TTL for workspaces created from this template. This licensed feature's default is 0h (off).

--ignore-lockfile

Type bool
Default false

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

--inactivity-ttl

Type duration
Default 0h

Specify an inactivity TTL for workspaces created from this template. This licensed feature's default is 0h (off).

-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.

--private

Type bool

Disable the default behavior of granting template access to the 'everyone' group. The template permissions must be updated to allow non-admin users to use this template.

--provisioner-tag

Type string-array

Specify a set of tags to target provisioner daemons.

--var

Type string-array

Alias of --variable.

--variable

Type string-array

Specify a set of values for Terraform-managed variables.

--variables-file

Type string

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

-y, --yes

Type bool

Bypass prompts.