6
6
Push a new template version from the current directory or as specified by flag
7
7
8
8
OPTIONS:
9
+ --deprecated string
10
+ Sets the template as deprecated. Must be a message explaining why the
11
+ template is deprecated.
12
+
9
13
--activate bool (default: true)
10
14
Whether the new template will be marked active.
11
15
16
+ --allow-user-autostart bool (default: true)
17
+ Allow users to configure autostart for workspaces on this template.
18
+ This can only be disabled in enterprise.
19
+
20
+ --allow-user-autostop bool (default: true)
21
+ Allow users to customize the autostop TTL for workspaces on this
22
+ template. This can only be disabled in enterprise.
23
+
24
+ --allow-user-cancel-workspace-jobs bool (default: true)
25
+ Allow users to cancel in-progress workspace jobs.
26
+
12
27
--always-prompt bool
13
28
Always prompt all parameters. Does not pull parameter values from
14
29
active template version.
15
30
16
- --create bool (default: false)
17
- Create the template if it does not exist.
31
+ --autostart-requirement-weekdays string-array
32
+ Edit the template autostart requirement weekdays - workspaces created
33
+ from this template can only autostart on the given weekdays. To unset
34
+ this value for the template (and allow autostart on all days), pass
35
+ 'all'.
36
+
37
+ --default-ttl duration (default: 24h)
38
+ Specify a default TTL for workspaces created from this template. It is
39
+ the default time before shutdown - workspaces created from this
40
+ template default to this value. Maps to "Default autostop" in the UI.
41
+
42
+ --description string
43
+ Edit the template description.
18
44
19
45
-d, --directory string (default: .)
20
46
Specify the directory to create from, use '-' to read tar from stdin.
21
47
48
+ --display-name string
49
+ Edit the template display name.
50
+
51
+ --dormancy-auto-deletion duration (default: 0h)
52
+ Specify a duration workspaces may be in the dormant state prior to
53
+ being deleted. This licensed feature's default is 0h (off). Maps to
54
+ "Dormancy Auto-Deletion" in the UI.
55
+
56
+ --dormancy-threshold duration (default: 0h)
57
+ Specify a duration workspaces may be inactive prior to being moved to
58
+ the dormant state. This licensed feature's default is 0h (off). Maps
59
+ to "Dormancy threshold" in the UI.
60
+
61
+ --failure-ttl duration (default: 0h)
62
+ Specify a failure TTL for workspaces created from this template. It is
63
+ the amount of time after a failed "start" build before coder
64
+ automatically schedules a "stop" build to cleanup.This licensed
65
+ feature's default is 0h (off). Maps to "Failure cleanup"in the UI.
66
+
67
+ --icon string
68
+ Edit the template icon path.
69
+
22
70
--ignore-lockfile bool (default: false)
23
71
Ignore warnings about not having a .terraform.lock.hcl file present in
24
72
the template.
25
73
74
+ --max-ttl duration
75
+ Edit the template maximum time before shutdown - workspaces created
76
+ from this template must shutdown within the given duration after
77
+ starting. This is an enterprise-only feature.
78
+
26
79
-m, --message string
27
80
Specify a message describing the changes in this version of the
28
81
template. Messages longer than 72 characters will be displayed as
@@ -32,9 +85,19 @@ OPTIONS:
32
85
Specify a name for the new template version. It will be automatically
33
86
generated if not provided.
34
87
88
+ --private bool
89
+ Disable the default behavior of granting template access to the
90
+ 'everyone' group. The template permissions must be updated to allow
91
+ non-admin users to use this template.
92
+
35
93
--provisioner-tag string-array
36
94
Specify a set of tags to target provisioner daemons.
37
95
96
+ --require-active-version bool (default: false)
97
+ Requires workspace builds to use the active template version. This
98
+ setting does not apply to template admins. This is an enterprise-only
99
+ feature.
100
+
38
101
--var string-array
39
102
Alias of --variable.
40
103
0 commit comments