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 edit`"
2026-08-11 11:22:55 -04:00
description : Edit the metadata of a template by name.
---
2023-03-23 17:42:20 -05:00
<!-- DO NOT EDIT | GENERATED CONTENT -->
Edit the metadata of a template by name.
## Usage
```console
coder templates edit [flags] <template>
```
## Options
2024-03-15 11:24:38 -05:00
### --name
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Edit the template name.
### --display-name
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Edit the template display name.
### --description
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Edit the template description.
### --deprecated
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Sets the template as deprecated. Must be a message explaining why the template is deprecated.
### --icon
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2024-03-15 11:24:38 -05:00
Edit the template icon path.
### --default-ttl
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
2024-03-15 11:24:38 -05:00
Edit the template default time before shutdown - workspaces created from this template default to this value. Maps to "Default autostop" in the UI.
2024-02-12 23:00:35 -08:00
### --activity-bump
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
2024-02-12 23:00:35 -08:00
Edit the template activity bump - workspaces created from this template will have their shutdown time bumped by this value when activity is detected. Maps to "Activity bump" in the UI.
2026-06-23 17:32:47 -05:00
### --autostop-reminder
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-----------------------|
| Type | <code>duration</code> |
2026-06-23 17:32:47 -05:00
Edit how long before the autostop deadline a reminder notification is sent for workspaces created from this template, in Go duration format (e.g. 1h, 30m). Set to 0 to disable.
2024-03-15 11:24:38 -05:00
### --autostart-requirement-weekdays
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|------------------------------------------------------------------------------------|
| Type | <code>[monday\|tuesday\|wednesday\|thursday\|friday\|saturday\|sunday\|all]</code> |
2024-03-15 11:24:38 -05:00
Edit the template autostart requirement weekdays - workspaces created from this template can only autostart on the given weekdays. To unset this value for the template (and allow autostart on all days), pass 'all'.
2024-03-20 10:37:57 -05:00
### --autostop-requirement-weekdays
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------------------------------------------------------------------------|
| Type | <code>[monday\|tuesday\|wednesday\|thursday\|friday\|saturday\|sunday\|none]</code> |
2024-03-20 10:37:57 -05:00
Edit the template autostop requirement weekdays - workspaces created from this template must be restarted on the given weekdays. To unset this value for the template (and disable the autostop requirement for the template), pass 'none'.
### --autostop-requirement-weeks
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|------------------|
| Type | <code>int</code> |
2024-03-20 10:37:57 -05:00
Edit the template autostop requirement weeks - workspaces created from this template must be restarted on an n-weekly basis.
2024-03-15 11:24:38 -05:00
### --failure-ttl
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 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
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 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.
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
### --allow-user-cancel-workspace-jobs
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
2024-03-15 11:24:38 -05:00
Allow users to cancel in-progress workspace jobs.
2023-04-04 22:48:35 +10:00
### --allow-user-autostart
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
2023-04-04 22:48:35 +10:00
2026-10-15 13:46:05 -04:00
Allow users to configure autostart for workspaces on this template. This can only be disabled with a Premium license.
2023-04-04 22:48:35 +10:00
### --allow-user-autostop
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
2023-04-04 22:48:35 +10:00
2026-10-15 13:46:05 -04:00
Allow users to customize the autostop TTL for workspaces on this template. This can only be disabled with a Premium license.
2023-04-04 22:48:35 +10:00
2024-03-15 11:24:38 -05:00
### --require-active-version
2023-03-23 17:42:20 -05:00
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|--------------------|
| Type | <code>bool</code> |
| Default | <code>false</code> |
2023-03-23 17:42:20 -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-03-23 17:42:20 -05:00
2024-01-05 16:04:14 -05:00
### --private
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|--------------------|
| Type | <code>bool</code> |
| Default | <code>false</code> |
2024-01-05 16:04:14 -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.
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-07-01 11:04:45 -10:00
### -O, --org
2026-10-21 10:58:04 -07:00
| Property | Value |
2025-01-03 18:12:59 +05:00
|-------------|----------------------------------|
2024-07-01 11:04:45 -10:00
| Type | <code>string</code> |
| Environment | <code>$CODER_ORGANIZATION</code> |
Select which organization (uuid or name) to use.