mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: deprecate template create command in favor of template push (#11390)
This commit is contained in:
+4
-8
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user