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

Skip to content

Commit 970611a

Browse files
committed
minor changes
1 parent 54549a7 commit 970611a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/templates.md

Lines changed: 6 additions & 7 deletions
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
@@ -227,25 +227,24 @@ You can delete a template using the coder CLI. Only
227227

228228
Using the CLI, login to Coder and run the following command to delete a template:
229229

230-
```console
230+
```sh
231231
coder templates pull <template-name> file.tar.gz
232232
```
233233

234234
This will pull down the template as a gzipped file to your current directory. Then unzip
235235
it by running:
236236

237-
```console
238-
tar -xf
237+
```sh
238+
tar -xf file.tar.gz
239239
```
240240

241241
Make the changes to your template then run this command from the root of the template folder:
242242

243-
```console
243+
```sh
244244
coder templates push <template-name>
245245
```
246246

247-
Your updated template will now be available in the UI for new workspaces.
248-
Previously created workspaces will see a button to update as well.
247+
Your updated template will now be available. Outdated workspaces will have a prompt in the dashboard to update.
249248

250249
### Delete templates
251250

0 commit comments

Comments
 (0)