2026-08-11 11:22:55 -04:00
---
# Code generated by make gen. DO NOT EDIT.
2026-09-28 15:44:10 -04:00
title : "`coder templates create`"
2026-10-20 18:51:44 -04:00
description : "DEPRECATED: Create a template from the current directory or as specified by flag."
2026-08-11 11:22:55 -04:00
---
2023-03-23 17:42:20 -05:00
<!-- DO NOT EDIT | GENERATED CONTENT -->
2024-01-05 16:04:14 -05:00
DEPRECATED: Create a template from the current directory or as specified by flag
2023-03-23 17:42:20 -05:00
## Usage
```console
coder templates create [flags] [name]
```
## Options
2026-08-06 14:45:38 +10:00
### --agents-allowed
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
2026-08-06 14:45:38 +10:00
Allow Coder Agents to create workspaces using this template.
2024-03-15 11:24:38 -05:00
### --private
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2024-03-15 11:24:38 -05:00
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
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Specify a file path with values for Terraform-managed variables.
### --variable
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------------|
| Type | <code>string-array</code> |
2024-03-15 11:24:38 -05:00
Specify a set of values for Terraform-managed variables.
### --var
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------------|
| Type | <code>string-array</code> |
2024-03-15 11:24:38 -05:00
Alias of --variable.
### --provisioner-tag
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------------|
| Type | <code>string-array</code> |
2024-03-15 11:24:38 -05:00
Specify a set of tags to target provisioner daemons.
2023-03-23 17:42:20 -05:00
### --default-ttl
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>24h</code> |
2023-03-23 17:42:20 -05:00
2023-08-25 13:39:12 -04:00
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.
2023-03-23 17:42:20 -05:00
2023-05-10 12:57:11 -07:00
### --failure-ttl
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>0h</code> |
2023-05-10 12:57:11 -07:00
2023-08-25 13:39:12 -04:00
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.
2023-05-10 12:57:11 -07:00
2024-03-15 11:24:38 -05:00
### --dormancy-threshold
2023-06-20 10:02:44 -05:00
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>0h</code> |
2023-06-20 10:02:44 -05:00
2024-03-15 11:24:38 -05:00
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
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>0h</code> |
2024-03-15 11:24:38 -05:00
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.
2023-06-20 10:02:44 -05:00
2023-10-19 17:16:15 -05:00
### --require-active-version
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|--------------------|
| Type | <code>bool</code> |
| Default | <code>false</code> |
2023-10-19 17:16:15 -05:00
2026-10-15 13:46:05 -04:00
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.
2023-10-19 17:16:15 -05:00
2023-03-23 17:42:20 -05:00
### -y, --yes
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2023-03-23 17:42:20 -05:00
2026-01-16 18:04:57 -08:00
Bypass confirmation prompts.
2024-03-15 11:24:38 -05:00
2024-07-12 10:47:28 -10:00
### -O, --org
2026-10-21 10:58:04 -07:00
| Property | Value |
2025-01-03 18:12:59 +05:00
|-------------|----------------------------------|
2024-07-12 10:47:28 -10:00
| Type | <code>string</code> |
| Environment | <code>$CODER_ORGANIZATION</code> |
Select which organization (uuid or name) to use.
2024-03-15 11:24:38 -05:00
### -d, --directory
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
| Default | <code>.</code> |
2024-03-15 11:24:38 -05:00
Specify the directory to create from, use '-' to read tar from stdin.
### --ignore-lockfile
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|--------------------|
| Type | <code>bool</code> |
| Default | <code>false</code> |
2024-03-15 11:24:38 -05:00
Ignore warnings about not having a .terraform.lock.hcl file present in the template.
### -m, --message
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Specify a message describing the changes in this version of the template. Messages longer than 72 characters will be displayed as truncated.