feat(cli): Add restart subcommand (#5799)

Fixes #2464
This commit is contained in:
Mathias Fredriksson
2023-01-19 23:56:41 +02:00
committed by GitHub
parent 8e5aefb841
commit 320cd3f3bc
5 changed files with 143 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ Workspace Commands:
delete Delete a workspace
list List workspaces
rename Rename a workspace
restart Restart a workspace
schedule Schedule automated start and stop times for workspaces
show Display details of a workspace's resources and agents
speedtest Run upload and download tests from your machine to a workspace
+25
View File
@@ -0,0 +1,25 @@
Restart a workspace
Usage:
coder restart <workspace> [flags]
Flags:
-h, --help help for restart
-y, --yes Bypass prompts
Global Flags:
--global-config coder Path to the global coder config directory.
Consumes $CODER_CONFIG_DIR (default "/tmp/coder-cli-test-config")
--header stringArray HTTP headers added to all requests. Provide as "Key=Value".
Consumes $CODER_HEADER
--no-feature-warning Suppress warnings about unlicensed features.
Consumes $CODER_NO_FEATURE_WARNING
--no-version-warning Suppress warning when client and server versions do not match.
Consumes $CODER_NO_VERSION_WARNING
--token string Specify an authentication token. For security reasons setting
CODER_SESSION_TOKEN is preferred.
Consumes $CODER_SESSION_TOKEN
--url string URL to a deployment.
Consumes $CODER_URL
-v, --verbose Enable verbose output.
Consumes $CODER_VERBOSE