mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add --version flag to coder templates pull, default to active version (#10153)
Fixes https://github.com/coder/coder/issues/9837
This commit is contained in:
+2
-1
@@ -29,7 +29,8 @@ SUBCOMMANDS:
|
||||
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 latest version of a template to a path.
|
||||
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
|
||||
specified by flag
|
||||
versions Manage different versions of the specified template
|
||||
|
||||
+6
-1
@@ -3,12 +3,17 @@ coder v0.0.0-devel
|
||||
USAGE:
|
||||
coder templates pull [flags] <name> [destination]
|
||||
|
||||
Download the latest version of a template to a path.
|
||||
Download the active, latest, or specified version of a template to a path.
|
||||
|
||||
OPTIONS:
|
||||
--tar bool
|
||||
Output the template as a tar archive to stdout.
|
||||
|
||||
--version string
|
||||
The name of the template version to pull. Use 'active' to pull the
|
||||
active version, 'latest' to pull the latest version, or the name of
|
||||
the template version to pull.
|
||||
|
||||
-y, --yes bool
|
||||
Bypass prompts.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user