feat: allow promoting an existing template version to active from CLI (#15051)

Co-authored-by: Muhammad Atif Ali <atif@coder.com>
This commit is contained in:
Joobi S B
2024-10-17 14:15:14 +05:00
committed by GitHub
co-authored by Muhammad Atif Ali
parent 46cce333b1
commit 5ebc748e94
7 changed files with 225 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ USAGE:
SUBCOMMANDS:
archive Archive a template version(s).
list List all the versions of the specified template
promote Promote a template version to active.
unarchive Unarchive a template version(s).
———
@@ -0,0 +1,23 @@
coder v0.0.0-devel
USAGE:
coder templates versions promote [flags] --template=<template_name>
--template-version=<template_version_name>
Promote a template version to active.
Promote an existing template version to be the active version for the
specified template.
OPTIONS:
-O, --org string, $CODER_ORGANIZATION
Select which organization (uuid or name) to use.
-t, --template string, $CODER_TEMPLATE_NAME
Specify the template name.
--template-version string, $CODER_TEMPLATE_VERSION_NAME
Specify the template version name to promote.
———
Run `coder --help` for a list of global options.