From 979a380f69c95b9e76f8ba0b13e0f84655d98cce Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 12:28:00 +0100 Subject: [PATCH 1/5] docs: Rephrase Templates section --- docs/templates.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/templates.md b/docs/templates.md index 9b801a2a72a0d..b52668bfc213b 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -225,17 +225,24 @@ 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 compressed file (`.tar.gz`) to your current directory: ```sh coder templates pull file.tar.gz ``` -This will pull down the template as a gzipped file to your current directory. Then unzip -it by running: +Then, unzip it by running: ```sh tar -xf file.tar.gz From b70d54a4029568c34dd2934335178d66930ba597 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 12:50:10 +0100 Subject: [PATCH 2/5] Update docs/templates.md Co-authored-by: Mathias Fredriksson --- docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates.md b/docs/templates.md index b52668bfc213b..1a4e7ae99bcad 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -239,7 +239,7 @@ Review editable template properties by running `coder templates edit -h`. Alternatively, you can pull down the template as a compressed file (`.tar.gz`) to your current directory: ```sh -coder templates pull file.tar.gz +coder templates pull file.tar ``` Then, unzip it by running: From 51726e5df328e0636e115d187b8b0f6e391cd8e9 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 12:50:18 +0100 Subject: [PATCH 3/5] Update docs/templates.md Co-authored-by: Mathias Fredriksson --- docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates.md b/docs/templates.md index 1a4e7ae99bcad..4e83e14dbadd0 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -236,7 +236,7 @@ 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 compressed file (`.tar.gz`) to your current directory: +Alternatively, you can pull down the template as a tape archive (`.tar`) to your current directory: ```sh coder templates pull file.tar From f7ef4d48e447582312d35788720e86290d894ec1 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 12:50:25 +0100 Subject: [PATCH 4/5] Update docs/templates.md Co-authored-by: Mathias Fredriksson --- docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates.md b/docs/templates.md index 4e83e14dbadd0..8f8a0d0e8916d 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -245,7 +245,7 @@ coder templates pull file.tar Then, unzip 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: From 239fe4e6c90ff38ed55099c4991dc90b4b5d00ed Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 14 Nov 2022 12:50:34 +0100 Subject: [PATCH 5/5] Update docs/templates.md Co-authored-by: Mathias Fredriksson --- docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates.md b/docs/templates.md index 8f8a0d0e8916d..1299ac12d4757 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -242,7 +242,7 @@ Alternatively, you can pull down the template as a tape archive (`.tar`) to your coder templates pull file.tar ``` -Then, unzip it by running: +Then, extract it by running: ```sh tar -xf file.tar