diff --git a/docs/templates.md b/docs/templates.md index 9b801a2a72a0d..1299ac12d4757 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -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 --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 file.tar.gz +coder templates pull 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: