Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: Rephrase Templates section #5062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 14, 2022
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