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 push`"
2026-10-20 18:51:44 -04:00
description : Create or update 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
Create or update a template from the current directory or as specified by flag
2023-03-23 17:42:20 -05:00
## Usage
```console
coder templates push [flags] [template]
```
## Options
2024-03-15 11:24:38 -05:00
### --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
2025-06-03 16:55:34 +01:00
Specify a set of tags to target provisioner daemons. If you do not specify any tags, the tags from the active template version will be reused, if available. To remove existing tags, use --provisioner-tag="-".
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
Specify a name for the new template version. It will be automatically generated if not provided.
### --always-prompt
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2024-03-15 11:24:38 -05:00
Always prompt all parameters. Does not pull parameter values from active template version.
2023-06-03 15:39:00 -07:00
### --activate
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
| Default | <code>true</code> |
2023-06-03 15:39:00 -07:00
Whether the new template will be marked active.
2026-09-09 09:15:43 +05:30
### --display-name
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2026-09-09 09:15:43 +05:30
Specify a display name for the template. Takes precedence over display_name in README.md front matter, if present.
### --icon
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2026-09-09 09:15:43 +05:30
Specify an icon path or external URL for the template. Takes precedence over icon in README.md front matter, if present.
2024-03-15 11:24:38 -05:00
### -y, --yes
2023-03-23 17:42:20 -05:00
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.
2023-03-23 17:42:20 -05:00
### -d, --directory
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
| Default | <code>.</code> |
2023-03-23 17:42:20 -05:00
Specify the directory to create from, use '-' to read tar from stdin.
2023-06-20 10:02:44 -05:00
### --ignore-lockfile
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|--------------------|
| Type | <code>bool</code> |
| Default | <code>false</code> |
2023-06-20 10:02:44 -05:00
Ignore warnings about not having a .terraform.lock.hcl file present in the template.
2023-07-11 13:11:08 +03:00
### -m, --message
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2023-07-11 13:11:08 +03:00
Specify a message describing the changes in this version of the template. Messages longer than 72 characters will be displayed as truncated.
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.