mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
dd97fe2bce
This change will improve over CLI performance and "snappiness" as well as substantially reduce our test times. Preliminary benchmarks show `coder server --help` times cut from 300ms to 120ms on my dogfood instance. The inefficiency of lipgloss disproportionately impacts our system, as all help text for every command is generated whenever any command is invoked. The `pretty` API could clean up a lot of the code (e.g., by replacing complex string concatenations with Printf), but this commit is too expansive as is so that work will be done in a follow up.
33 lines
955 B
Plaintext
33 lines
955 B
Plaintext
Usage: coder create [flags] [name]
|
|
|
|
Create a workspace
|
|
|
|
- Create a workspace for another user (if you have permission):
|
|
|
|
$ coder create <username>/<workspace_name>
|
|
|
|
[1mOptions[0m
|
|
--parameter string-array, $CODER_RICH_PARAMETER
|
|
Rich parameter value in the format "name=value".
|
|
|
|
--rich-parameter-file string, $CODER_RICH_PARAMETER_FILE
|
|
Specify a file path with values for rich parameters defined in the
|
|
template.
|
|
|
|
--start-at string, $CODER_WORKSPACE_START_AT
|
|
Specify the workspace autostart schedule. Check coder schedule start
|
|
--help for the syntax.
|
|
|
|
--stop-after duration, $CODER_WORKSPACE_STOP_AFTER
|
|
Specify a duration after which the workspace should shut down (e.g.
|
|
8h).
|
|
|
|
-t, --template string, $CODER_TEMPLATE_NAME
|
|
Specify a template name.
|
|
|
|
-y, --yes bool
|
|
Bypass prompts.
|
|
|
|
---
|
|
Run `coder --help` for a list of global options.
|