mirror of https://github.com/coder/coder.git
docs: Rephrase Templates section (#5062)
* docs: Rephrase Templates section * Update docs/templates.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Update docs/templates.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Update docs/templates.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Update docs/templates.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
This commit is contained in:
parent
e72927f3ab
commit
1b6d0c39e1
|
@ -225,20 +225,27 @@ resource "kubernetes_pod" "podName" {
|
|||
|
||||
### Edit templates
|
||||
|
||||
You can delete a template using the coder CLI. Only
|
||||
You can edit a template using the coder CLI. Only
|
||||
[template admins and owners](./admin/users.md) can edit a template.
|
||||
|
||||
Using the CLI, login to Coder and run the following command to delete a template:
|
||||
Using the CLI, login to Coder and run the following command to edit a single template:
|
||||
|
||||
```sh
|
||||
coder templates pull <template-name> file.tar.gz
|
||||
coder templates edit <template-name> --description "This is my template"
|
||||
```
|
||||
|
||||
This will pull down the template as a gzipped file to your current directory. Then unzip
|
||||
it by running:
|
||||
Review editable template properties by running `coder templates edit -h`.
|
||||
|
||||
Alternatively, you can pull down the template as a tape archive (`.tar`) to your current directory:
|
||||
|
||||
```sh
|
||||
tar -xf file.tar.gz
|
||||
coder templates pull <template-name> file.tar
|
||||
```
|
||||
|
||||
Then, extract it by running:
|
||||
|
||||
```sh
|
||||
tar -xf file.tar
|
||||
```
|
||||
|
||||
Make the changes to your template then run this command from the root of the template folder:
|
||||
|
|
Loading…
Reference in New Issue