Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 edit <template-name> --description "This is my template"
```

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
coder templates pull <template-name> file.tar.gz
coder templates pull <template-name> file.tar
```

This will pull down the template as a gzipped file to your current directory. Then unzip
it by running:
Then, extract it by running:

```sh
tar -xf file.tar.gz
tar -xf file.tar
```

Make the changes to your template then run this command from the root of the template folder:
Expand Down