mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
co-authored by
Muhammad Atif Ali
parent
46cce333b1
commit
5ebc748e94
Generated
+1
@@ -29,3 +29,4 @@ coder templates versions
|
||||
| [<code>list</code>](./templates_versions_list.md) | List all the versions of the specified template |
|
||||
| [<code>archive</code>](./templates_versions_archive.md) | Archive a template version(s). |
|
||||
| [<code>unarchive</code>](./templates_versions_unarchive.md) | Unarchive a template version(s). |
|
||||
| [<code>promote</code>](./templates_versions_promote.md) | Promote a template version to active. |
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
|
||||
# templates versions promote
|
||||
|
||||
Promote a template version to active.
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder templates versions promote [flags] --template=<template_name> --template-version=<template_version_name>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
```console
|
||||
Promote an existing template version to be the active version for the specified template.
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### -t, --template
|
||||
|
||||
| | |
|
||||
| ----------- | --------------------------------- |
|
||||
| Type | <code>string</code> |
|
||||
| Environment | <code>$CODER_TEMPLATE_NAME</code> |
|
||||
|
||||
Specify the template name.
|
||||
|
||||
### --template-version
|
||||
|
||||
| | |
|
||||
| ----------- | ----------------------------------------- |
|
||||
| Type | <code>string</code> |
|
||||
| Environment | <code>$CODER_TEMPLATE_VERSION_NAME</code> |
|
||||
|
||||
Specify the template version name to promote.
|
||||
|
||||
### -O, --org
|
||||
|
||||
| | |
|
||||
| ----------- | -------------------------------- |
|
||||
| Type | <code>string</code> |
|
||||
| Environment | <code>$CODER_ORGANIZATION</code> |
|
||||
|
||||
Select which organization (uuid or name) to use.
|
||||
Reference in New Issue
Block a user