From 1b6d0c39e1ff041d1f9d3b655828317a1680699a Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 13:06:16 +0100 Subject: [PATCH] docs: Rephrase Templates section (#5062) * docs: Rephrase Templates section * Update docs/templates.md Co-authored-by: Mathias Fredriksson * Update docs/templates.md Co-authored-by: Mathias Fredriksson * Update docs/templates.md Co-authored-by: Mathias Fredriksson * Update docs/templates.md Co-authored-by: Mathias Fredriksson Co-authored-by: Mathias Fredriksson --- docs/templates.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/templates.md b/docs/templates.md index 9b801a2a72..1299ac12d4 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 pull file.tar.gz +coder templates edit --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 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: