@@ -348,7 +348,7 @@ use the Coder CLI.
348
348
349
349
![ Logging in to your Coder deployment] ( ../images/templates/coder-login-web.png )
350
350
351
- 1 . Copy the session tokeninto the clipboard:
351
+ 1 . Copy the session tokento the clipboard:
352
352
353
353
![ Logging in to your Coder deployment] ( ../images/templates/coder-session-token.png )
354
354
@@ -359,7 +359,13 @@ use the Coder CLI.
359
359
$
360
360
```
361
361
362
- 1 . Add your template files to your Coder deployment:
362
+ ###Add the template files to Coder
363
+
364
+ Add your template files to your Coder deployment. You can upload the template through the CLI, or through the Coder dashboard:
365
+
366
+ ####Upload template from the Coder CLI
367
+
368
+ 1 . Run` coder templates create ` from the directory with your template files:
363
369
364
370
``` console
365
371
$ pwd
@@ -372,17 +378,43 @@ use the Coder CLI.
372
378
373
379
``` console
374
380
> Confirm create? (yes/no) yes
375
-
381
+
376
382
The template-tour template has been created! Developers can provision a workspace with this template using:
377
-
378
- coder create --template="template-tour" [workspace name]
383
+
384
+ coder create --template="template-tour" [workspace name]
379
385
```
380
386
381
387
1 . In your web browser, log in to your Coder dashboard, select** Templates** .
382
388
383
- Your template is ready to use for new workspaces.
389
+ 1 . Once the upload completes, select** Templates** from the top to deploy it to a new workspace.
390
+
391
+ ![ Your new template, ready to use] ( ../images/templates/template-tour.png )
392
+
393
+ ####Upload template from the Coder dashboard
394
+
395
+ 1 . Create a` .zip ` of the template files.
396
+
397
+ On Mac or Windows, highlight the files and then right click. A "compress" option is available through the right-click context menu.
398
+
399
+ Through the Linux command line, use` zip ` :
400
+
401
+ ``` shell
402
+ zip templates.zip Dockerfile main.tf
403
+ ```
404
+
405
+ 1 . Select** Templates** from the top of the Coder dashboard, then** Create Template** .
406
+
407
+ 1 . Select** Upload template** :
408
+
409
+ ![ Upload your first template] ( ../images/templates/upload-create-your-first-template.png )
410
+
411
+ 1 . Drag the` .zip ` file into the** Upload template** section and fill out the details, then select** Create template** .
412
+
413
+ ![ Upload the template files] ( ../images/templates/upload-create-template-form.png )
414
+
415
+ 1 . Once the upload completes, select** Templates** from the top to deploy it to a new workspace.
384
416
385
- ![ Your new template, ready to use] ( ../images/templates/template-tour.png )
417
+ ![ Your new template, ready to use] ( ../images/templates/template-tour.png )
386
418
387
419
###Next steps
388
420