Skip to content

Commit 2f2911a

Browse files
committed
update mentions of templates create command
1 parent 7655bc9 commit 2f2911a

File tree

18 files changed

+21
-171
lines changed

18 files changed

+21
-171
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ jobs:
416416
417417
# Create template
418418
cd ./.github/pr-deployments/template
419-
coder templates create -y --variable namespace=pr${{ env.PR_NUMBER }} kubernetes
419+
coder templates push -y --variable namespace=pr${{ env.PR_NUMBER }} kubernetes
420420
421421
# Create workspace
422422
coder create --template="kubernetes" kube --parameter cpu=2 --parameter memory=4 --parameter home_disk_size=2 -y

cli/templateinit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (*RootCmd) templateInit() *clibase.Cmd {
113113
inv.Stdout,
114114
pretty.Sprint(
115115
cliui.DefaultStyles.Code,
116-
"cd "+relPath+" && coder templates create"),
116+
"cd "+relPath+" && coder templates push"),
117117
)
118118
_, _ = fmt.Fprintln(inv.Stdout, pretty.Sprint(cliui.DefaultStyles.Wrap, "\nExamples provide a starting point and are expected to be edited! 🎨"))
119119
return nil

cli/templatelist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (r *RootCmd) templateList() *clibase.Cmd {
3636

3737
if len(templates) == 0 {
3838
_, _ = fmt.Fprintf(inv.Stderr, "%s No templates found in %s! Create one:\n\n", Caret, color.HiWhiteString(organization.Name))
39-
_, _ = fmt.Fprintln(inv.Stderr, color.HiMagentaString(" $ coder templates create <directory>\n"))
39+
_, _ = fmt.Fprintln(inv.Stderr, color.HiMagentaString(" $ coder templates push <directory>\n"))
4040
return nil
4141
}
4242

cli/templates.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ func (r *RootCmd) templates() *clibase.Cmd {
1717
Use: "templates",
1818
Short: "Manage templates",
1919
Long: "Templates are written in standard Terraform and describe the infrastructure for workspaces\n" + formatExamples(
20-
example{
21-
Description: "Create a template for developers to create workspaces",
22-
Command: "coder templates create",
23-
},
2420
example{
2521
Description: "Make changes to your template, and plan the changes",
2622
Command: "coder templates plan my-template",
2723
},
2824
example{
29-
Description: "Push an update to the template. Your developers can update their workspaces",
25+
Description: "Create or push an update to the template. Your developers can update their workspaces",
3026
Command: "coder templates push my-template",
3127
},
3228
),

docs/admin/provisioners.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ the [Helm example](#example-running-an-external-provisioner-with-helm) below.
6464

6565
# In another terminal, create/push
6666
# a template that requires this provisioner
67-
coder templates create on-prem \
67+
coder templates push on-prem \
6868
--provisioner-tag environment=on_prem
6969

7070
# Or, match the provisioner exactly
71-
coder templates create on-prem-chicago \
71+
coder templates push on-prem-chicago \
7272
--provisioner-tag environment=on_prem \
7373
--provisioner-tag data_center=chicago
7474
```
@@ -88,7 +88,7 @@ the [Helm example](#example-running-an-external-provisioner-with-helm) below.
8888

8989
# In another terminal, create/push
9090
# a template that requires user provisioners
91-
coder templates create on-prem \
91+
coder templates push on-prem \
9292
--provisioner-tag scope=user
9393
```
9494

docs/cli/templates.md

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/install/openshift.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Edit `main.tf` and update the following fields of the Kubernetes pod resource:
322322
Finally, create the template:
323323

324324
```console
325-
coder template create kubernetes -d .
325+
coder template push kubernetes -d .
326326
```
327327

328328
This template should be ready to use straight away.

docs/platforms/azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Navigate to the `./azure-linux` folder where you created your template and run
128128
the following command to put the template on your Coder instance.
129129

130130
```shell
131-
coder templates create
131+
coder templates push
132132
```
133133

134134
Congrats! You can now navigate to your Coder dashboard and use this Linux on

docs/platforms/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Coder with Docker has the following advantages:
5252
cd docker
5353
```
5454

55-
1. Push up the template with `coder templates create`
55+
1. Push up the template with `coder templates push`
5656

5757
1. Open the dashboard in your browser to create your first workspace:
5858

docs/platforms/kubernetes/additional-clusters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export CLUSTER_SERVICEACCOUNT_TOKEN=$(kubectl get secrets coder-v2 -n coder-work
211211
Create the template with these values:
212212

213213
```shell
214-
coder templates create \
214+
coder templates push \
215215
--variable host=$CLUSTER_ADDRESS \
216216
--variable cluster_ca_certificate=$CLUSTER_CA_CERTIFICATE \
217217
--variable token=$CLUSTER_SERVICEACCOUNT_TOKEN \
@@ -228,7 +228,7 @@ kubectl cluster-info
228228
# Get cluster CA and token (base64 encoded)
229229
kubectl get secrets coder-service-account-token -n coder-workspaces -o jsonpath="{.data}"
230230
231-
coder templates create \
231+
coder templates push \
232232
--variable host=API_ADDRESS \
233233
--variable cluster_ca_certificate=CLUSTER_CA_CERTIFICATE \
234234
--variable token=CLUSTER_SERVICEACCOUNT_TOKEN \

0 commit comments

Comments
 (0)