mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): colorize help page (#9589)
This commit is contained in:
+20
-17
@@ -1,62 +1,65 @@
|
||||
Usage: coder templates create [flags] [name]
|
||||
coder v0.0.0-devel
|
||||
|
||||
Create a template from the current directory or as specified by flag
|
||||
[93mUSAGE:[0m
|
||||
coder templates create [flags] [name]
|
||||
|
||||
[1mOptions[0m
|
||||
--default-ttl duration (default: 24h)
|
||||
Create a template from the current directory or as specified by flag
|
||||
|
||||
[93mOPTIONS:[0m
|
||||
[94m--[0m[94mdefault-ttl[0m duration (default: 24h)
|
||||
Specify a default TTL for workspaces created from this template. It is
|
||||
the default time before shutdown - workspaces created from this
|
||||
template default to this value. Maps to "Default autostop" in the UI.
|
||||
|
||||
-d, --directory string (default: .)
|
||||
[94m-[0m[94md[0m, [94m--[0m[94mdirectory[0m string (default: .)
|
||||
Specify the directory to create from, use '-' to read tar from stdin.
|
||||
|
||||
--failure-ttl duration (default: 0h)
|
||||
[94m--[0m[94mfailure-ttl[0m duration (default: 0h)
|
||||
Specify a failure TTL for workspaces created from this template. It is
|
||||
the amount of time after a failed "start" build before coder
|
||||
automatically schedules a "stop" build to cleanup.This licensed
|
||||
feature's default is 0h (off). Maps to "Failure cleanup"in the UI.
|
||||
|
||||
--ignore-lockfile bool (default: false)
|
||||
[94m--[0m[94mignore-lockfile[0m bool (default: false)
|
||||
Ignore warnings about not having a .terraform.lock.hcl file present in
|
||||
the template.
|
||||
|
||||
--inactivity-ttl duration (default: 0h)
|
||||
[94m--[0m[94minactivity-ttl[0m duration (default: 0h)
|
||||
Specify an inactivity TTL for workspaces created from this template.
|
||||
It is the amount of time the workspace is not used before it is be
|
||||
stopped and auto-locked. This includes across multiple builds (e.g.
|
||||
auto-starts and stops). This licensed feature's default is 0h (off).
|
||||
Maps to "Dormancy threshold" in the UI.
|
||||
|
||||
--max-ttl duration
|
||||
[94m--[0m[94mmax-ttl[0m duration
|
||||
Edit the template maximum time before shutdown - workspaces created
|
||||
from this template must shutdown within the given duration after
|
||||
starting. This is an enterprise-only feature.
|
||||
|
||||
-m, --message string
|
||||
[94m-[0m[94mm[0m, [94m--[0m[94mmessage[0m string
|
||||
Specify a message describing the changes in this version of the
|
||||
template. Messages longer than 72 characters will be displayed as
|
||||
truncated.
|
||||
|
||||
--private bool
|
||||
[94m--[0m[94mprivate[0m bool
|
||||
Disable the default behavior of granting template access to the
|
||||
'everyone' group. The template permissions must be updated to allow
|
||||
non-admin users to use this template.
|
||||
|
||||
--provisioner-tag string-array
|
||||
[94m--[0m[94mprovisioner-tag[0m string-array
|
||||
Specify a set of tags to target provisioner daemons.
|
||||
|
||||
--var string-array
|
||||
[94m--[0m[94mvar[0m string-array
|
||||
Alias of --variable.
|
||||
|
||||
--variable string-array
|
||||
[94m--[0m[94mvariable[0m string-array
|
||||
Specify a set of values for Terraform-managed variables.
|
||||
|
||||
--variables-file string
|
||||
[94m--[0m[94mvariables-file[0m string
|
||||
Specify a file path with values for Terraform-managed variables.
|
||||
|
||||
-y, --yes bool
|
||||
[94m-[0m[94my[0m, [94m--[0m[94myes[0m bool
|
||||
Bypass prompts.
|
||||
|
||||
---
|
||||
———
|
||||
Run `coder --help` for a list of global options.
|
||||
|
||||
Reference in New Issue
Block a user