chore: deprecate template create command in favor of template push (#11390)

This commit is contained in:
Garrett Delfosse
2024-01-05 21:04:14 +00:00
committed by GitHub
parent 3d54bc06f6
commit b21da38bea
42 changed files with 498 additions and 420 deletions
+4 -8
View File
@@ -9,15 +9,11 @@ USAGE:
Templates are written in standard Terraform and describe the infrastructure
for workspaces
- Create a template for developers to create workspaces:
$ coder templates create
- Make changes to your template, and plan the changes:
$ coder templates plan my-template
- Push an update to the template. Your developers can update their
- Create or push an update to the template. Your developers can update their
workspaces:
$ coder templates push my-template
@@ -25,15 +21,15 @@ USAGE:
SUBCOMMANDS:
archive Archive unused or failed template versions from a given
template(s)
create Create a template from the current directory or as specified by
flag
create DEPRECATED: Create a template from the current directory or as
specified by flag
delete Delete templates
edit Edit the metadata of a template by name.
init Get started with a templated template.
list List all the templates available for the organization
pull Download the active, latest, or specified version of a template
to a path.
push Push a new template version from the current directory or as
push Create or update a template from the current directory or as
specified by flag
versions Manage different versions of the specified template
+2 -1
View File
@@ -3,7 +3,8 @@ coder v0.0.0-devel
USAGE:
coder templates create [flags] [name]
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
OPTIONS:
--default-ttl duration (default: 24h)
+5
View File
@@ -66,6 +66,11 @@ OPTIONS:
--name string
Edit the template name.
--private bool (default: false)
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.
--require-active-version bool (default: false)
Requires workspace builds to use the active template version. This
setting does not apply to template admins. This is an enterprise-only
+1 -4
View File
@@ -3,7 +3,7 @@ coder v0.0.0-devel
USAGE:
coder templates push [flags] [template]
Push a new template version from the current directory or as specified by flag
Create or update a template from the current directory or as specified by flag
OPTIONS:
--activate bool (default: true)
@@ -13,9 +13,6 @@ OPTIONS:
Always prompt all parameters. Does not pull parameter values from
active template version.
--create bool (default: false)
Create the template if it does not exist.
-d, --directory string (default: .)
Specify the directory to create from, use '-' to read tar from stdin.