File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ coder templates init
22
22
vim < template-name> /main.tf
23
23
24
24
# add the template to Coder deployment
25
- coder templates < create/update > < template-name>
25
+ coder templates create < template-name>
26
26
```
27
27
28
28
> See the documentation and source code for each example in the
@@ -220,6 +220,32 @@ resource "kubernetes_pod" "podName" {
220
220
}
221
221
```
222
222
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
+
223
249
### Delete templates
224
250
225
251
You can delete a template using both the coder CLI and UI. Only
You can’t perform that action at this time.
0 commit comments