Files
coder/docs/reference/cli/templates/create.md
T
Nick Vigilante 2ee96f82f9 docs: give every table header cell text and fail lint on empty ones
Screen readers announce a table header cell with no text as an unnamed
column, and axe reports it as empty-table-header.

- clidocgen writes "Property | Value" over each option's metadata table
  instead of an empty header row; the CLI reference is regenerated.
- The port-forwarding CORS matrix labels its corner cells (From user,
  From workspace, To user, To workspace, To app).
- Four Markdown matrices get a corner label, byte-identical to #30873.
- docshtmlcheck (make lint/docs-html) now fails on empty header cells in
  Markdown pipe tables and raw HTML tables, naming the file, line, and
  the table's first header.

Assisted-by: AI
2026-10-15 16:48:16 -04:00

4.6 KiB
Generated

title, description
title description
`coder templates create` DEPRECATED: Create a template from the current directory or as specified by flag

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

Usage

coder templates create [flags] [name]

Options

--agents-allowed

Property Value
Type bool
Default true

Allow Coder Agents to create workspaces using this template.

--private

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

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

--default-ttl

Property Value
Type duration
Default 24h

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

Property Value
Type duration
Default 0h

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

Property Value
Type duration
Default 0h

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

Property Value
Type duration
Default 0h

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

Property Value
Type bool
Default false

Requires workspace builds to use the active template version. This setting does not apply to template admins. This is a Premium feature. See https://coder.com/docs/admin/templates/managing-templates#template-update-policies for more details.

-y, --yes

Property Value
Type bool

Bypass confirmation prompts.

-O, --org

Property Value
Type string
Environment $CODER_ORGANIZATION

Select which organization (uuid or name) to use.

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