New
Discover how Dropbox streamlined dev environments & cut costs by switching 1000 developers to Coder

Read the success story

Home
/
Command Line
/
templates create

templates create

templates create

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

Usage

coder templates create [flags] [name]

Options

--private

Typebool

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.

--variables-file

Typestring

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

--variable

Typestring-array

Specify a set of values for Terraform-managed variables.

--var

Typestring-array

Alias of --variable.

--provisioner-tag

Typestring-array

Specify a set of tags to target provisioner daemons.

--default-ttl

Typeduration
Default24h

Specify a default TTL for workspaces created from this template. It is the default time before shutdown - workspaces created from this template default to this value. Maps to "Default autostop" in the UI.

--failure-ttl

Typeduration
Default0h

Specify a failure TTL for workspaces created from this template. It is the amount of time after a failed "start" build before coder automatically schedules a "stop" build to cleanup.This licensed feature's default is 0h (off). Maps to "Failure cleanup"in the UI.

--dormancy-threshold

Typeduration
Default0h

Specify a duration workspaces may be inactive prior to being moved to the dormant state. This licensed feature's default is 0h (off). Maps to "Dormancy threshold" in the UI.

--dormancy-auto-deletion

Typeduration
Default0h

Specify a duration workspaces may be in the dormant state prior to being deleted. This licensed feature's default is 0h (off). Maps to "Dormancy Auto-Deletion" in the UI.

--require-active-version

Typebool
Defaultfalse

Requires workspace builds to use the active template version. This setting does not apply to template admins. This is an enterprise-only feature.

-y, --yes

Typebool

Bypass prompts.

-d, --directory

Typestring
Default.

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

--ignore-lockfile

Typebool
Defaultfalse

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

-m, --message

Typestring

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

See an opportunity to improve our docs? Make an edit.
On this page