2026-08-11 11:22:55 -04:00
---
# Code generated by make gen. DO NOT EDIT.
title : templates create
description : "DEPRECATED: Create a template from the current directory or as specified by flag"
---
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
| | |
|---------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
Allow Coder Agents to create workspaces using this template.
2024-03-15 11:24:38 -05:00
### --private
| | |
2025-01-03 18:12:59 +05:00
|------|-------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>bool</code> |
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
| | |
2025-01-03 18:12:59 +05:00
|------|---------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string</code> |
Specify a file path with values for Terraform-managed variables.
### --variable
| | |
2025-01-03 18:12:59 +05:00
|------|---------------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string-array</code> |
Specify a set of values for Terraform-managed variables.
### --var
| | |
2025-01-03 18:12:59 +05:00
|------|---------------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string-array</code> |
Alias of --variable.
### --provisioner-tag
| | |
2025-01-03 18:12:59 +05:00
|------|---------------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string-array</code> |
Specify a set of tags to target provisioner daemons.
2023-03-23 17:42:20 -05:00
### --default-ttl
| | |
2025-01-03 18:12:59 +05:00
|---------|-----------------------|
2023-03-23 17:42:20 -05:00
| Type | <code>duration</code> |
| Default | <code>24h</code> |
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
| | |
2025-01-03 18:12:59 +05:00
|---------|-----------------------|
2023-05-10 12:57:11 -07:00
| Type | <code>duration</code> |
| Default | <code>0h</code> |
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
2024-03-15 11:24:38 -05:00
| | |
2025-01-03 18:12:59 +05:00
|---------|-----------------------|
2024-03-15 11:24:38 -05:00
| 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
| | |
2025-01-03 18:12:59 +05:00
|---------|-----------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>duration</code> |
| Default | <code>0h</code> |
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
| | |
2025-01-03 18:12:59 +05:00
|---------|--------------------|
2023-10-19 17:16:15 -05:00
| Type | <code>bool</code> |
| Default | <code>false</code> |
2024-11-01 15:43:51 -04:00
Requires workspace builds to use the active template version. This setting does not apply to template admins. This is an enterprise-only feature. See https://coder.com/docs/admin/templates/managing-templates#require -automatic-updates-enterprise for more details.
2023-10-19 17:16:15 -05:00
2023-03-23 17:42:20 -05:00
### -y, --yes
| | |
2025-01-03 18:12:59 +05:00
|------|-------------------|
2023-03-23 17:42:20 -05:00
| Type | <code>bool</code> |
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
| | |
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
| | |
2025-01-03 18:12:59 +05:00
|---------|---------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string</code> |
| Default | <code>.</code> |
Specify the directory to create from, use '-' to read tar from stdin.
### --ignore-lockfile
| | |
2025-01-03 18:12:59 +05:00
|---------|--------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>bool</code> |
| Default | <code>false</code> |
Ignore warnings about not having a .terraform.lock.hcl file present in the template.
### -m, --message
| | |
2025-01-03 18:12:59 +05:00
|------|---------------------|
2024-03-15 11:24:38 -05:00
| Type | <code>string</code> |
Specify a message describing the changes in this version of the template. Messages longer than 72 characters will be displayed as truncated.