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

Skip to content

Commit bd1be08

Browse files
committed
add steps for creating a template from an existing one in the CLI
1 parent ce4c83d commit bd1be08

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/admin/templates/creating-templates.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,33 @@ page.
111111

112112
### CLI
113113

114+
First, ensure you are logged in to the control plane
115+
116+
```console
117+
coder login
118+
```
119+
120+
You can list the available templates with the following CLI invocation.
121+
122+
```console
123+
coder templates list
124+
```
125+
126+
After identified the template you'd like to work from, clone it into a directory
127+
with a name you'd like to assign to the new modified template.
128+
129+
```console
130+
coder templates pull <template-name> ./<new-template-name>
131+
```
132+
133+
Then, you can make modifications to the existing template in this directory and
134+
push them to the control plane using the `-d` flag to specify the directory.
135+
136+
```console
137+
138+
coder templates push <new-template-name> -d ./<new-template-name>
139+
```
140+
114141
</div>
115142

116143
## From scratch (advanced)

0 commit comments

Comments
 (0)