From 9d8c3ca59cb9f99eb27133aef3691bf047963462 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 26 Oct 2022 11:18:47 -0700 Subject: [PATCH] docs(templates): add edit templates section (#4754) * docs(templates): add edit templates section * minor changes Co-authored-by: Ben --- docs/templates.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/templates.md b/docs/templates.md index 096442677b..9c81789197 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -22,7 +22,7 @@ coder templates init vim /main.tf # add the template to Coder deployment -coder templates +coder templates create ``` > See the documentation and source code for each example in the @@ -220,6 +220,32 @@ resource "kubernetes_pod" "podName" { } ``` +### Edit templates + +You can delete 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: + +```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: + +```sh +tar -xf file.tar.gz +``` + +Make the changes to your template then run this command from the root of the template folder: + +```sh +coder templates push +``` + +Your updated template will now be available. Outdated workspaces will have a prompt in the dashboard to update. + ### Delete templates You can delete a template using both the coder CLI and UI. Only