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

Skip to content

Commit 9d8c3ca

Browse files
jsjoeiobpmct
andauthored
docs(templates): add edit templates section (#4754)
* docs(templates): add edit templates section * minor changes Co-authored-by: Ben <[email protected]>
1 parent 820306a commit 9d8c3ca

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

docs/templates.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ coder templates init
2222
vim <template-name>/main.tf
2323

2424
# add the template to Coder deployment
25-
coder templates <create/update> <template-name>
25+
coder templates create <template-name>
2626
```
2727

2828
> See the documentation and source code for each example in the
@@ -220,6 +220,32 @@ resource "kubernetes_pod" "podName" {
220220
}
221221
```
222222

223+
### Edit templates
224+
225+
You can delete a template using the coder CLI. Only
226+
[template admins and owners](./admin/users.md) can edit a template.
227+
228+
Using the CLI, login to Coder and run the following command to delete a template:
229+
230+
```sh
231+
coder templates pull <template-name> file.tar.gz
232+
```
233+
234+
This will pull down the template as a gzipped file to your current directory. Then unzip
235+
it by running:
236+
237+
```sh
238+
tar -xf file.tar.gz
239+
```
240+
241+
Make the changes to your template then run this command from the root of the template folder:
242+
243+
```sh
244+
coder templates push <template-name>
245+
```
246+
247+
Your updated template will now be available. Outdated workspaces will have a prompt in the dashboard to update.
248+
223249
### Delete templates
224250

225251
You can delete a template using both the coder CLI and UI. Only

0 commit comments

Comments
 (0)