From a756f520afff9794f279d14be0c1a1793bbaa613 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Wed, 22 Feb 2023 19:44:26 +0000 Subject: [PATCH 01/20] Refactor MVP --- Makefile | 3 +- docs/cli/coder.md | 72 +----- docs/cli/coder_config-ssh.md | 56 ----- docs/cli/coder_create.md | 47 ---- docs/cli/coder_delete.md | 39 --- docs/cli/coder_dotfiles.md | 47 ---- docs/cli/coder_list.md | 40 ---- docs/cli/coder_login.md | 44 ---- docs/cli/coder_logout.md | 37 --- docs/cli/coder_ping.md | 38 --- docs/cli/coder_port-forward.md | 62 ----- docs/cli/coder_publickey.md | 38 --- docs/cli/coder_rename.md | 37 --- docs/cli/coder_reset-password.md | 38 --- docs/cli/coder_restart.md | 37 --- docs/cli/coder_scaletest.md | 42 ---- docs/cli/coder_scaletest_cleanup.md | 46 ---- docs/cli/coder_scaletest_create-workspaces.md | 98 -------- docs/cli/coder_schedule.md | 40 ---- docs/cli/coder_schedule_override-stop.md | 50 ---- docs/cli/coder_schedule_show.md | 45 ---- docs/cli/coder_schedule_start.md | 57 ----- docs/cli/coder_schedule_stop.md | 59 ----- docs/cli/coder_server.md | 185 -------------- docs/cli/coder_server_create-admin-user.md | 41 ---- .../coder_server_postgres-builtin-serve.md | 37 --- docs/cli/coder_server_postgres-builtin-url.md | 37 --- docs/cli/coder_show.md | 36 --- docs/cli/coder_speedtest.md | 39 --- docs/cli/coder_ssh.md | 48 ---- docs/cli/coder_start.md | 37 --- docs/cli/coder_state.md | 38 --- docs/cli/coder_state_pull.md | 35 --- docs/cli/coder_state_push.md | 35 --- docs/cli/coder_stop.md | 37 --- docs/cli/coder_templates.md | 65 ----- docs/cli/coder_templates_create.md | 43 ---- docs/cli/coder_templates_delete.md | 37 --- docs/cli/coder_templates_edit.md | 43 ---- docs/cli/coder_templates_init.md | 36 --- docs/cli/coder_templates_list.md | 38 --- docs/cli/coder_templates_plan.md | 36 --- docs/cli/coder_templates_pull.md | 37 --- docs/cli/coder_templates_push.md | 44 ---- docs/cli/coder_templates_versions.md | 45 ---- docs/cli/coder_templates_versions_list.md | 38 --- docs/cli/coder_tokens.md | 59 ----- docs/cli/coder_tokens_create.md | 38 --- docs/cli/coder_tokens_list.md | 38 --- docs/cli/coder_tokens_remove.md | 36 --- docs/cli/coder_update.md | 41 ---- docs/cli/coder_users.md | 41 ---- docs/cli/coder_users_activate.md | 43 ---- docs/cli/coder_users_create.md | 37 --- docs/cli/coder_users_list.md | 36 --- docs/cli/coder_users_show.md | 43 ---- docs/cli/coder_users_suspend.md | 43 ---- docs/cli/coder_version.md | 36 --- docs/manifest.json | 226 +----------------- scripts/clidocgen/gen.go | 46 ++++ scripts/clidocgen/main.go | 15 +- 61 files changed, 51 insertions(+), 2866 deletions(-) delete mode 100644 docs/cli/coder_config-ssh.md delete mode 100644 docs/cli/coder_create.md delete mode 100644 docs/cli/coder_delete.md delete mode 100644 docs/cli/coder_dotfiles.md delete mode 100644 docs/cli/coder_list.md delete mode 100644 docs/cli/coder_login.md delete mode 100644 docs/cli/coder_logout.md delete mode 100644 docs/cli/coder_ping.md delete mode 100644 docs/cli/coder_port-forward.md delete mode 100644 docs/cli/coder_publickey.md delete mode 100644 docs/cli/coder_rename.md delete mode 100644 docs/cli/coder_reset-password.md delete mode 100644 docs/cli/coder_restart.md delete mode 100644 docs/cli/coder_scaletest.md delete mode 100644 docs/cli/coder_scaletest_cleanup.md delete mode 100644 docs/cli/coder_scaletest_create-workspaces.md delete mode 100644 docs/cli/coder_schedule.md delete mode 100644 docs/cli/coder_schedule_override-stop.md delete mode 100644 docs/cli/coder_schedule_show.md delete mode 100644 docs/cli/coder_schedule_start.md delete mode 100644 docs/cli/coder_schedule_stop.md delete mode 100644 docs/cli/coder_server.md delete mode 100644 docs/cli/coder_server_create-admin-user.md delete mode 100644 docs/cli/coder_server_postgres-builtin-serve.md delete mode 100644 docs/cli/coder_server_postgres-builtin-url.md delete mode 100644 docs/cli/coder_show.md delete mode 100644 docs/cli/coder_speedtest.md delete mode 100644 docs/cli/coder_ssh.md delete mode 100644 docs/cli/coder_start.md delete mode 100644 docs/cli/coder_state.md delete mode 100644 docs/cli/coder_state_pull.md delete mode 100644 docs/cli/coder_state_push.md delete mode 100644 docs/cli/coder_stop.md delete mode 100644 docs/cli/coder_templates.md delete mode 100644 docs/cli/coder_templates_create.md delete mode 100644 docs/cli/coder_templates_delete.md delete mode 100644 docs/cli/coder_templates_edit.md delete mode 100644 docs/cli/coder_templates_init.md delete mode 100644 docs/cli/coder_templates_list.md delete mode 100644 docs/cli/coder_templates_plan.md delete mode 100644 docs/cli/coder_templates_pull.md delete mode 100644 docs/cli/coder_templates_push.md delete mode 100644 docs/cli/coder_templates_versions.md delete mode 100644 docs/cli/coder_templates_versions_list.md delete mode 100644 docs/cli/coder_tokens.md delete mode 100644 docs/cli/coder_tokens_create.md delete mode 100644 docs/cli/coder_tokens_list.md delete mode 100644 docs/cli/coder_tokens_remove.md delete mode 100644 docs/cli/coder_update.md delete mode 100644 docs/cli/coder_users.md delete mode 100644 docs/cli/coder_users_activate.md delete mode 100644 docs/cli/coder_users_create.md delete mode 100644 docs/cli/coder_users_list.md delete mode 100644 docs/cli/coder_users_show.md delete mode 100644 docs/cli/coder_users_suspend.md delete mode 100644 docs/cli/coder_version.md create mode 100644 scripts/clidocgen/gen.go diff --git a/Makefile b/Makefile index 754788c1e8539..97a042daece5e 100644 --- a/Makefile +++ b/Makefile @@ -501,7 +501,8 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me yarn run format:write:only ../docs/admin/prometheus.md docs/cli/coder.md: scripts/clidocgen/main.go $(GO_SRC_FILES) docs/manifest.json - BASE_PATH="." go run scripts/clidocgen/main.go + rm -rf ../docs/cli/* + BASE_PATH="." go run ./scripts/clidocgen cd site yarn run format:write:only ../docs/cli/*.md ../docs/manifest.json diff --git a/docs/cli/coder.md b/docs/cli/coder.md index f576b7c37344a..844615d228743 100644 --- a/docs/cli/coder.md +++ b/docs/cli/coder.md @@ -1,71 +1 @@ -## coder - -### Synopsis - -Coder — A tool for provisioning self-hosted development environments with Terraform. - -``` -coder [flags] -``` - -### Examples - -``` - - Start a Coder server: - - $ coder server - - - Get started by creating a template from an example: - - $ coder templates init -``` - -### Options - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --header stringArray HTTP headers added to all requests. Provide as "Key=Value". - Consumes $CODER_HEADER - -h, --help help for coder - --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 -``` - -### SEE ALSO - -- [coder config-ssh](coder_config-ssh.md) - Add an SSH Host entry for your workspaces "ssh coder.workspace" -- [coder create](coder_create.md) - Create a workspace -- [coder delete](coder_delete.md) - Delete a workspace -- [coder dotfiles](coder_dotfiles.md) - Checkout and install a dotfiles repository from a Git URL -- [coder list](coder_list.md) - List workspaces -- [coder login](coder_login.md) - Authenticate with Coder deployment -- [coder logout](coder_logout.md) - Unauthenticate your local session -- [coder ping](coder_ping.md) - Ping a workspace -- [coder port-forward](coder_port-forward.md) - Forward ports from machine to a workspace -- [coder publickey](coder_publickey.md) - Output your Coder public key used for Git operations -- [coder rename](coder_rename.md) - Rename a workspace -- [coder reset-password](coder_reset-password.md) - Directly connect to the database to reset a user's password -- [coder restart](coder_restart.md) - Restart a workspace -- [coder scaletest](coder_scaletest.md) - Run a scale test against the Coder API -- [coder schedule](coder_schedule.md) - Schedule automated start and stop times for workspaces -- [coder server](coder_server.md) - Start a Coder server -- [coder show](coder_show.md) - Display details of a workspace's resources and agents -- [coder speedtest](coder_speedtest.md) - Run upload and download tests from your machine to a workspace -- [coder ssh](coder_ssh.md) - Start a shell into a workspace -- [coder start](coder_start.md) - Start a workspace -- [coder state](coder_state.md) - Manually manage Terraform state to fix broken workspaces -- [coder stop](coder_stop.md) - Stop a workspace -- [coder templates](coder_templates.md) - Manage templates -- [coder tokens](coder_tokens.md) - Manage personal access tokens -- [coder update](coder_update.md) - Update a workspace -- [coder users](coder_users.md) - Manage users -- [coder version](coder_version.md) - Show coder version +# coder diff --git a/docs/cli/coder_config-ssh.md b/docs/cli/coder_config-ssh.md deleted file mode 100644 index 69ff9182a4095..0000000000000 --- a/docs/cli/coder_config-ssh.md +++ /dev/null @@ -1,56 +0,0 @@ -## coder config-ssh - -Add an SSH Host entry for your workspaces "ssh coder.workspace" - -``` -coder config-ssh [flags] -``` - -### Examples - -``` - - You can use -o (or --ssh-option) so set SSH options to be used for all your - workspaces: - - $ coder config-ssh -o ForwardAgent=yes - - - You can use --dry-run (or -n) to see the changes that would be made: - - $ coder config-ssh --dry-run -``` - -### Options - -``` - -n, --dry-run Perform a trial run with no changes made, showing a diff at the end. - -h, --help help for config-ssh - --ssh-config-file string Specifies the path to an SSH config. - Consumes $CODER_SSH_CONFIG_FILE (default "~/.ssh/config") - -o, --ssh-option stringArray Specifies additional SSH options to embed in each host stanza. - --use-previous-options Specifies whether or not to keep options from previous run of config-ssh. - Consumes $CODER_SSH_USE_PREVIOUS_OPTIONS - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_create.md b/docs/cli/coder_create.md deleted file mode 100644 index c1ad99033e067..0000000000000 --- a/docs/cli/coder_create.md +++ /dev/null @@ -1,47 +0,0 @@ -## coder create - -Create a workspace - -``` -coder create [name] [flags] -``` - -### Options - -``` - -h, --help help for create - --parameter-file string Specify a file path with parameter values. - Consumes $CODER_PARAMETER_FILE - --rich-parameter-file string Specify a file path with values for rich parameters defined in the template. - Consumes $CODER_RICH_PARAMETER_FILE - --start-at coder schedule start --help Specify the workspace autostart schedule. Check coder schedule start --help for the syntax. - Consumes $CODER_WORKSPACE_START_AT - --stop-after duration Specify a duration after which the workspace should shut down (e.g. 8h). - Consumes $CODER_WORKSPACE_STOP_AFTER (default 8h0m0s) - -t, --template string Specify a template name. - Consumes $CODER_TEMPLATE_NAME - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_delete.md b/docs/cli/coder_delete.md deleted file mode 100644 index d45883024992a..0000000000000 --- a/docs/cli/coder_delete.md +++ /dev/null @@ -1,39 +0,0 @@ -## coder delete - -Delete a workspace - -``` -coder delete [flags] -``` - -### Options - -``` - -h, --help help for delete - --orphan Delete a workspace without deleting its resources. This can delete a - workspace in a broken state, but may also lead to unaccounted cloud resources. - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_dotfiles.md b/docs/cli/coder_dotfiles.md deleted file mode 100644 index be1a2b423f1e9..0000000000000 --- a/docs/cli/coder_dotfiles.md +++ /dev/null @@ -1,47 +0,0 @@ -## coder dotfiles - -Checkout and install a dotfiles repository from a Git URL - -``` -coder dotfiles [git_repo_url] [flags] -``` - -### Examples - -``` - - Check out and install a dotfiles repository without prompts: - - $ coder dotfiles --yes git@github.com:example/dotfiles.git -``` - -### Options - -``` - -h, --help help for dotfiles - --symlink-dir string Specifies the directory for the dotfiles symlink destinations. If empty will use $HOME. - Consumes $CODER_SYMLINK_DIR - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_list.md b/docs/cli/coder_list.md deleted file mode 100644 index 19eb28c07a14d..0000000000000 --- a/docs/cli/coder_list.md +++ /dev/null @@ -1,40 +0,0 @@ -## coder list - -List workspaces - -``` -coder list [flags] -``` - -### Options - -``` - -a, --all Specifies whether all workspaces will be listed or not. - -c, --column strings Columns to display in table output. Available columns: workspace, template, status, last built, outdated, starts at, stops after (default [workspace,template,status,last built,outdated,starts at,stops after]) - -h, --help help for list - -o, --output string Output format. Available formats: table, json (default "table") - --search string Search for a workspace with a query. (default "owner:me") -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_login.md b/docs/cli/coder_login.md deleted file mode 100644 index b7dcfbf6589a6..0000000000000 --- a/docs/cli/coder_login.md +++ /dev/null @@ -1,44 +0,0 @@ -## coder login - -Authenticate with Coder deployment - -``` -coder login [flags] -``` - -### Options - -``` - --first-user-email string Specifies an email address to use if creating the first user for the deployment. - Consumes $CODER_FIRST_USER_EMAIL - --first-user-password string Specifies a password to use if creating the first user for the deployment. - Consumes $CODER_FIRST_USER_PASSWORD - --first-user-trial Specifies whether a trial license should be provisioned for the Coder deployment or not. - Consumes $CODER_FIRST_USER_TRIAL - --first-user-username string Specifies a username to use if creating the first user for the deployment. - Consumes $CODER_FIRST_USER_USERNAME - -h, --help help for login -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_logout.md b/docs/cli/coder_logout.md deleted file mode 100644 index 4cfecd7c41597..0000000000000 --- a/docs/cli/coder_logout.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder logout - -Unauthenticate your local session - -``` -coder logout [flags] -``` - -### Options - -``` - -h, --help help for logout - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_ping.md b/docs/cli/coder_ping.md deleted file mode 100644 index 04d222473d462..0000000000000 --- a/docs/cli/coder_ping.md +++ /dev/null @@ -1,38 +0,0 @@ -## coder ping - -Ping a workspace - -``` -coder ping [flags] -``` - -### Options - -``` - -h, --help help for ping - -n, --num int Specifies the number of pings to perform. (default 10) - -t, --timeout duration Specifies how long to wait for a ping to complete. (default 5s) - -v, --verbose Enables verbose logging. - --wait duration Specifies how long to wait between pings. (default 1s) -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_port-forward.md b/docs/cli/coder_port-forward.md deleted file mode 100644 index a1b4b36dcf8b0..0000000000000 --- a/docs/cli/coder_port-forward.md +++ /dev/null @@ -1,62 +0,0 @@ -## coder port-forward - -Forward ports from machine to a workspace - -``` -coder port-forward [flags] -``` - -### Examples - -``` - - Port forward a single TCP port from 1234 in the workspace to port 5678 on - your local machine: - - $ coder port-forward --tcp 5678:1234 - - - Port forward a single UDP port from port 9000 to port 9000 on your local - machine: - - $ coder port-forward --udp 9000 - - - Port forward multiple TCP ports and a UDP port: - - $ coder port-forward --tcp 8080:8080 --tcp 9000:3000 --udp 5353:53 - - - Port forward multiple ports (TCP or UDP) in condensed syntax: - - $ coder port-forward --tcp 8080,9000:3000,9090-9092,10000-10002:10010-10012 -``` - -### Options - -``` - -h, --help help for port-forward - -p, --tcp stringArray Forward TCP port(s) from the workspace to the local machine. - Consumes $CODER_PORT_FORWARD_TCP - --udp stringArray Forward UDP port(s) from the workspace to the local machine. The UDP connection has TCP-like semantics to support stateful UDP protocols. - Consumes $CODER_PORT_FORWARD_UDP -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_publickey.md b/docs/cli/coder_publickey.md deleted file mode 100644 index 56a529dd0dc2a..0000000000000 --- a/docs/cli/coder_publickey.md +++ /dev/null @@ -1,38 +0,0 @@ -## coder publickey - -Output your Coder public key used for Git operations - -``` -coder publickey [flags] -``` - -### Options - -``` - -h, --help help for publickey - --reset Regenerate your public key. This will require updating the key on any services it's registered with. - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_rename.md b/docs/cli/coder_rename.md deleted file mode 100644 index d10ed9bc6c545..0000000000000 --- a/docs/cli/coder_rename.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder rename - -Rename a workspace - -``` -coder rename [flags] -``` - -### Options - -``` - -h, --help help for rename - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_reset-password.md b/docs/cli/coder_reset-password.md deleted file mode 100644 index edf4ca2bf37e2..0000000000000 --- a/docs/cli/coder_reset-password.md +++ /dev/null @@ -1,38 +0,0 @@ -## coder reset-password - -Directly connect to the database to reset a user's password - -``` -coder reset-password [flags] -``` - -### Options - -``` - -h, --help help for reset-password - --postgres-url string URL of a PostgreSQL database to connect to. - Consumes $CODER_PG_CONNECTION_URL -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_restart.md b/docs/cli/coder_restart.md deleted file mode 100644 index a06258e83babc..0000000000000 --- a/docs/cli/coder_restart.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder restart - -Restart a workspace - -``` -coder restart [flags] -``` - -### Options - -``` - -h, --help help for restart - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_scaletest.md b/docs/cli/coder_scaletest.md deleted file mode 100644 index f43fe0d570d14..0000000000000 --- a/docs/cli/coder_scaletest.md +++ /dev/null @@ -1,42 +0,0 @@ -## coder scaletest - -Run a scale test against the Coder API - -### Synopsis - -Perform scale tests against the Coder server. - -``` -coder scaletest [flags] -``` - -### Options - -``` - -h, --help help for scaletest -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - -- [coder scaletest cleanup](coder_scaletest_cleanup.md) - Cleanup any orphaned scaletest resources -- [coder scaletest create-workspaces](coder_scaletest_create-workspaces.md) - Creates many workspaces and waits for them to be ready diff --git a/docs/cli/coder_scaletest_cleanup.md b/docs/cli/coder_scaletest_cleanup.md deleted file mode 100644 index 3994c0c8b3dbd..0000000000000 --- a/docs/cli/coder_scaletest_cleanup.md +++ /dev/null @@ -1,46 +0,0 @@ -## coder scaletest cleanup - -Cleanup any orphaned scaletest resources - -### Synopsis - -Cleanup scaletest workspaces, then cleanup scaletest users. The strategy flags will apply to each stage of the cleanup process. - -``` -coder scaletest cleanup [flags] -``` - -### Options - -``` - --cleanup-concurrency int Number of concurrent cleanup jobs to run. 0 means unlimited. - Consumes $CODER_LOADTEST_CLEANUP_CONCURRENCY (default 1) - --cleanup-job-timeout duration Timeout per job. Jobs may take longer to complete under higher concurrency limits. - Consumes $CODER_LOADTEST_CLEANUP_JOB_TIMEOUT (default 5m0s) - --cleanup-timeout duration Timeout for the entire cleanup run. 0 means unlimited. - Consumes $CODER_LOADTEST_CLEANUP_TIMEOUT (default 30m0s) - -h, --help help for cleanup -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder scaletest](coder_scaletest.md) - Run a scale test against the Coder API diff --git a/docs/cli/coder_scaletest_create-workspaces.md b/docs/cli/coder_scaletest_create-workspaces.md deleted file mode 100644 index e1c33fca85d36..0000000000000 --- a/docs/cli/coder_scaletest_create-workspaces.md +++ /dev/null @@ -1,98 +0,0 @@ -## coder scaletest create-workspaces - -Creates many workspaces and waits for them to be ready - -### Synopsis - -Creates many users, then creates a workspace for each user and waits for them finish building and fully come online. Optionally runs a command inside each workspace, and connects to the workspace over WireGuard. - -It is recommended that all rate limits are disabled on the server before running this scaletest. This test generates many login events which will be rate limited against the (most likely single) IP. - -``` -coder scaletest create-workspaces [flags] -``` - -### Options - -``` - --cleanup-concurrency int Number of concurrent cleanup jobs to run. 0 means unlimited. - Consumes $CODER_LOADTEST_CLEANUP_CONCURRENCY (default 1) - --cleanup-job-timeout duration Timeout per job. Jobs may take longer to complete under higher concurrency limits. - Consumes $CODER_LOADTEST_CLEANUP_JOB_TIMEOUT (default 5m0s) - --cleanup-timeout duration Timeout for the entire cleanup run. 0 means unlimited. - Consumes $CODER_LOADTEST_CLEANUP_TIMEOUT (default 30m0s) - --concurrency int Number of concurrent jobs to run. 0 means unlimited. - Consumes $CODER_LOADTEST_CONCURRENCY (default 1) - --connect-hold duration How long to hold the WireGuard connection open for. - Consumes $CODER_LOADTEST_CONNECT_HOLD (default 30s) - --connect-interval duration How long to wait between making requests to the --connect-url once the connection is established. - Consumes $CODER_LOADTEST_CONNECT_INTERVAL (default 1s) - --connect-mode string Mode to use for connecting to the workspace. Can be 'derp' or 'direct'. - Consumes $CODER_LOADTEST_CONNECT_MODE (default "derp") - --connect-timeout duration Timeout for each request to the --connect-url. - Consumes $CODER_LOADTEST_CONNECT_TIMEOUT (default 5s) - --connect-url string URL to connect to inside the the workspace over WireGuard. If not specified, no connections will be made over WireGuard. - Consumes $CODER_LOADTEST_CONNECT_URL - -c, --count int Required: Number of workspaces to create. - Consumes $CODER_LOADTEST_COUNT (default 1) - -h, --help help for create-workspaces - --job-timeout duration Timeout per job. Jobs may take longer to complete under higher concurrency limits. - Consumes $CODER_LOADTEST_JOB_TIMEOUT (default 5m0s) - --no-cleanup coder scaletest cleanup Do not clean up resources after the test completes. You can cleanup manually using coder scaletest cleanup. - Consumes $CODER_LOADTEST_NO_CLEANUP - --no-plan Skip the dry-run step to plan the workspace creation. This step ensures that the given parameters are valid for the given template. - Consumes $CODER_LOADTEST_NO_PLAN - --no-wait-for-agents Do not wait for agents to start before marking the test as succeeded. This can be useful if you are running the test against a template that does not start the agent quickly. - Consumes $CODER_LOADTEST_NO_WAIT_FOR_AGENTS - --output stringArray Output format specs in the format "[:]". Not specifying a path will default to stdout. Available formats: text, json. - Consumes $CODER_SCALETEST_OUTPUTS (default [text]) - --parameter stringArray Parameters to use for each workspace. Can be specified multiple times. Overrides any existing parameters with the same name from --parameters-file. Format: key=value. - Consumes $CODER_LOADTEST_PARAMETERS - --parameters-file string Path to a YAML file containing the parameters to use for each workspace. - Consumes $CODER_LOADTEST_PARAMETERS_FILE - --run-command string Command to run inside each workspace using reconnecting-pty (i.e. web terminal protocol). If not specified, no command will be run. - Consumes $CODER_LOADTEST_RUN_COMMAND - --run-expect-output string Expect the command to output the given string (on a single line). If the command does not output the given string, it will be marked as failed. - Consumes $CODER_LOADTEST_RUN_EXPECT_OUTPUT - --run-expect-timeout Expect the command to timeout. If the command does not finish within the given --run-timeout, it will be marked as succeeded. If the command finishes before the timeout, it will be marked as failed. - Consumes $CODER_LOADTEST_RUN_EXPECT_TIMEOUT - --run-log-output Log the output of the command to the test logs. This should be left off unless you expect small amounts of output. Large amounts of output will cause high memory usage. - Consumes $CODER_LOADTEST_RUN_LOG_OUTPUT - --run-timeout duration Timeout for the command to complete. - Consumes $CODER_LOADTEST_RUN_TIMEOUT (default 5s) - -t, --template string Required: Name or ID of the template to use for workspaces. - Consumes $CODER_LOADTEST_TEMPLATE - --timeout duration Timeout for the entire test run. 0 means unlimited. - Consumes $CODER_LOADTEST_TIMEOUT (default 30m0s) - --trace Whether application tracing data is collected. It exports to a backend configured by environment variables. See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md. - Consumes $CODER_LOADTEST_TRACE - --trace-coder Whether opentelemetry traces are sent to Coder. We recommend keeping this disabled unless we advise you to enable it. - Consumes $CODER_LOADTEST_TRACE_CODER - --trace-honeycomb-api-key string Enables trace exporting to Honeycomb.io using the provided API key. - Consumes $CODER_LOADTEST_TRACE_HONEYCOMB_API_KEY - --trace-propagate Enables trace propagation to the Coder backend, which will be used to correlate server-side spans with client-side spans. Only enable this if the server is configured with the exact same tracing configuration as the client. - Consumes $CODER_LOADTEST_TRACE_PROPAGATE -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder scaletest](coder_scaletest.md) - Run a scale test against the Coder API diff --git a/docs/cli/coder_schedule.md b/docs/cli/coder_schedule.md deleted file mode 100644 index 4a315bed79587..0000000000000 --- a/docs/cli/coder_schedule.md +++ /dev/null @@ -1,40 +0,0 @@ -## coder schedule - -Schedule automated start and stop times for workspaces - -``` -coder schedule { show | start | stop | override } [flags] -``` - -### Options - -``` - -h, --help help for schedule -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - -- [coder schedule override-stop](coder_schedule_override-stop.md) - Edit stop time of active workspace -- [coder schedule show](coder_schedule_show.md) - Show workspace schedule -- [coder schedule start](coder_schedule_start.md) - Edit workspace start schedule -- [coder schedule stop](coder_schedule_stop.md) - Edit workspace stop schedule diff --git a/docs/cli/coder_schedule_override-stop.md b/docs/cli/coder_schedule_override-stop.md deleted file mode 100644 index 48d730b80a792..0000000000000 --- a/docs/cli/coder_schedule_override-stop.md +++ /dev/null @@ -1,50 +0,0 @@ -## coder schedule override-stop - -Edit stop time of active workspace - -### Synopsis - -Override the stop time of a currently running workspace instance. - -- The new stop time is calculated from _now_. -- The new stop time must be at least 30 minutes in the future. -- The workspace template may restrict the maximum workspace runtime. - -``` -coder schedule override-stop [flags] -``` - -### Examples - -``` - $ coder schedule override-stop my-workspace 90m -``` - -### Options - -``` - -h, --help help for override-stop -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder schedule](coder_schedule.md) - Schedule automated start and stop times for workspaces diff --git a/docs/cli/coder_schedule_show.md b/docs/cli/coder_schedule_show.md deleted file mode 100644 index c92f68bd909fd..0000000000000 --- a/docs/cli/coder_schedule_show.md +++ /dev/null @@ -1,45 +0,0 @@ -## coder schedule show - -Show workspace schedule - -### Synopsis - -Shows the following information for the given workspace: - -- The automatic start schedule -- The next scheduled start time -- The duration after which it will stop -- The next scheduled stop time - -``` -coder schedule show [flags] -``` - -### Options - -``` - -h, --help help for show -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder schedule](coder_schedule.md) - Schedule automated start and stop times for workspaces diff --git a/docs/cli/coder_schedule_start.md b/docs/cli/coder_schedule_start.md deleted file mode 100644 index d48ae5b9f8f91..0000000000000 --- a/docs/cli/coder_schedule_start.md +++ /dev/null @@ -1,57 +0,0 @@ -## coder schedule start - -Edit workspace start schedule - -### Synopsis - -Schedules a workspace to regularly start at a specific time. -Schedule format: [day-of-week] [location]. - -- Start-time (required) is accepted either in 12-hour (hh:mm{am|pm}) format, or 24-hour format hh:mm. -- Day-of-week (optional) allows specifying in the cron format, e.g. 1,3,5 or Mon-Fri. - Aliases such as @daily are not supported. - Default: \* (every day) -- Location (optional) must be a valid location in the IANA timezone database. - If omitted, we will fall back to either the TZ environment variable or /etc/localtime. - You can check your corresponding location by visiting https://ipinfo.io - it shows in the demo widget on the right. - -``` -coder schedule start { [day-of-week] [location] | manual } [flags] -``` - -### Examples - -``` - - Set the workspace to start at 9:30am (in Dublin) from Monday to Friday: - - $ coder schedule start my-workspace 9:30AM Mon-Fri Europe/Dublin -``` - -### Options - -``` - -h, --help help for start -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder schedule](coder_schedule.md) - Schedule automated start and stop times for workspaces diff --git a/docs/cli/coder_schedule_stop.md b/docs/cli/coder_schedule_stop.md deleted file mode 100644 index 77825073fef83..0000000000000 --- a/docs/cli/coder_schedule_stop.md +++ /dev/null @@ -1,59 +0,0 @@ -## coder schedule stop - -Edit workspace stop schedule - -### Synopsis - -Schedules a workspace to stop after a given duration has elapsed. - -- Workspace runtime is measured from the time that the workspace build completed. -- The minimum scheduled stop time is 1 minute. -- The workspace template may place restrictions on the maximum shutdown time. -- Changes to workspace schedules only take effect upon the next build of the workspace, - and do not affect a running instance of a workspace. - -When enabling scheduled stop, enter a duration in one of the following formats: - -- 3h2m (3 hours and two minutes) -- 3h (3 hours) -- 2m (2 minutes) -- 2 (2 minutes) - -``` -coder schedule stop { | manual } [flags] -``` - -### Examples - -``` - $ coder schedule stop my-workspace 2h30m -``` - -### Options - -``` - -h, --help help for stop -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder schedule](coder_schedule.md) - Schedule automated start and stop times for workspaces diff --git a/docs/cli/coder_server.md b/docs/cli/coder_server.md deleted file mode 100644 index fd844729734e4..0000000000000 --- a/docs/cli/coder_server.md +++ /dev/null @@ -1,185 +0,0 @@ -## coder server - -Start a Coder server - -``` -coder server [flags] -``` - -### Options - -``` - --access-url string External URL to access your deployment. This must be accessible by all provisioned workspaces. - Consumes $CODER_ACCESS_URL - --api-rate-limit int Maximum number of requests per minute allowed to the API per user, or per IP address for unauthenticated users. Negative values mean no rate limit. Some API endpoints have separate strict rate limits regardless of this value to prevent denial-of-service or brute force attacks. - Consumes $CODER_API_RATE_LIMIT (default 512) - --cache-dir string The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd. - Consumes $CODER_CACHE_DIRECTORY (default "~/.cache/coder") - --dangerous-allow-path-app-sharing Allow workspace apps that are not served from subdomains to be shared. Path-based app sharing is DISABLED by default for security purposes. Path-based apps can make requests to the Coder API and pose a security risk when the workspace serves malicious JavaScript. Path-based apps can be disabled entirely with --disable-path-apps for further security. - Consumes $CODER_DANGEROUS_ALLOW_PATH_APP_SHARING - --dangerous-allow-path-app-site-owner-access Allow site-owners to access workspace apps from workspaces they do not own. Owners cannot access path-based apps they do not own by default. Path-based apps can make requests to the Coder API and pose a security risk when the workspace serves malicious JavaScript. Path-based apps can be disabled entirely with --disable-path-apps for further security. - Consumes $CODER_DANGEROUS_ALLOW_PATH_APP_SITE_OWNER_ACCESS - --dangerous-disable-rate-limits Disables all rate limits. This is not recommended in production. - Consumes $CODER_RATE_LIMIT_DISABLE_ALL - --derp-config-path string Path to read a DERP mapping from. See: https://tailscale.com/kb/1118/custom-derp-servers/ - Consumes $CODER_DERP_CONFIG_PATH - --derp-config-url string URL to fetch a DERP mapping on startup. See: https://tailscale.com/kb/1118/custom-derp-servers/ - Consumes $CODER_DERP_CONFIG_URL - --derp-server-enable Whether to enable or disable the embedded DERP relay server. - Consumes $CODER_DERP_SERVER_ENABLE (default true) - --derp-server-region-code string Region code to use for the embedded DERP server. - Consumes $CODER_DERP_SERVER_REGION_CODE (default "coder") - --derp-server-region-id int Region ID to use for the embedded DERP server. - Consumes $CODER_DERP_SERVER_REGION_ID (default 999) - --derp-server-region-name string Region name that for the embedded DERP server. - Consumes $CODER_DERP_SERVER_REGION_NAME (default "Coder Embedded Relay") - --derp-server-stun-addresses strings Addresses for STUN servers to establish P2P connections. Set empty to disable P2P connections. - Consumes $CODER_DERP_SERVER_STUN_ADDRESSES (default [stun.l.google.com:19302]) - --disable-password-auth coder server create-admin Disable password authentication. This is recommended for security purposes in production deployments that rely on an identity provider. Any user with the owner role will be able to sign in with their password regardless of this setting to avoid potential lock out. If you are locked out of your account, you can use the coder server create-admin command to create a new admin user directly in the database. - Consumes $CODER_DISABLE_PASSWORD_AUTH - --disable-path-apps Disable workspace apps that are not served from subdomains. Path-based apps can make requests to the Coder API and pose a security risk when the workspace serves malicious JavaScript. This is recommended for security purposes if a --wildcard-access-url is configured. - Consumes $CODER_DISABLE_PATH_APPS - --disable-session-expiry-refresh Disable automatic session expiry bumping due to activity. This forces all sessions to become invalid after the session expiry duration has been reached. - Consumes $CODER_DISABLE_SESSION_EXPIRY_REFRESH - --experiments strings Enable one or more experiments. These are not ready for production. Separate multiple experiments with commas, or enter '*' to opt-in to all available experiments. - Consumes $CODER_EXPERIMENTS - -h, --help help for server - --http-address string HTTP bind address of the server. Unset to disable the HTTP endpoint. - Consumes $CODER_HTTP_ADDRESS (default "127.0.0.1:3000") - --log-human string Output human-readable logs to a given file. - Consumes $CODER_LOGGING_HUMAN (default "/dev/stderr") - --log-json string Output JSON logs to a given file. - Consumes $CODER_LOGGING_JSON - --log-stackdriver string Output Stackdriver compatible logs to a given file. - Consumes $CODER_LOGGING_STACKDRIVER - --max-token-lifetime duration The maximum lifetime duration users can specify when creating an API token. - Consumes $CODER_MAX_TOKEN_LIFETIME (default 720h0m0s) - --oauth2-github-allow-everyone Allow all logins, setting this option means allowed orgs and teams must be empty. - Consumes $CODER_OAUTH2_GITHUB_ALLOW_EVERYONE - --oauth2-github-allow-signups Whether new users can sign up with GitHub. - Consumes $CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS - --oauth2-github-allowed-orgs strings Organizations the user must be a member of to Login with GitHub. - Consumes $CODER_OAUTH2_GITHUB_ALLOWED_ORGS - --oauth2-github-allowed-teams strings Teams inside organizations the user must be a member of to Login with GitHub. Structured as: /. - Consumes $CODER_OAUTH2_GITHUB_ALLOWED_TEAMS - --oauth2-github-client-id string Client ID for Login with GitHub. - Consumes $CODER_OAUTH2_GITHUB_CLIENT_ID - --oauth2-github-client-secret string Client secret for Login with GitHub. - Consumes $CODER_OAUTH2_GITHUB_CLIENT_SECRET - --oauth2-github-enterprise-base-url string Base URL of a GitHub Enterprise deployment to use for Login with GitHub. - Consumes $CODER_OAUTH2_GITHUB_ENTERPRISE_BASE_URL - --oidc-allow-signups Whether new users can sign up with OIDC. - Consumes $CODER_OIDC_ALLOW_SIGNUPS (default true) - --oidc-client-id string Client ID to use for Login with OIDC. - Consumes $CODER_OIDC_CLIENT_ID - --oidc-client-secret string Client secret to use for Login with OIDC. - Consumes $CODER_OIDC_CLIENT_SECRET - --oidc-email-domain strings Email domains that clients logging in with OIDC must match. - Consumes $CODER_OIDC_EMAIL_DOMAIN - --oidc-icon-url string URL pointing to the icon to use on the OepnID Connect login button - Consumes $CODER_OIDC_ICON_URL - --oidc-ignore-email-verified Ignore the email_verified claim from the upstream provider. - Consumes $CODER_OIDC_IGNORE_EMAIL_VERIFIED - --oidc-issuer-url string Issuer URL to use for Login with OIDC. - Consumes $CODER_OIDC_ISSUER_URL - --oidc-scopes strings Scopes to grant when authenticating with OIDC. - Consumes $CODER_OIDC_SCOPES (default [openid,profile,email]) - --oidc-sign-in-text string The text to show on the OpenID Connect sign in button - Consumes $CODER_OIDC_SIGN_IN_TEXT (default "OpenID Connect") - --oidc-username-field string OIDC claim field to use as the username. - Consumes $CODER_OIDC_USERNAME_FIELD (default "preferred_username") - --postgres-url string URL of a PostgreSQL database. If empty, PostgreSQL binaries will be downloaded from Maven (https://repo1.maven.org/maven2) and store all data in the config root. Access the built-in database with "coder server postgres-builtin-url". - Consumes $CODER_PG_CONNECTION_URL - --pprof-address string The bind address to serve pprof. - Consumes $CODER_PPROF_ADDRESS (default "127.0.0.1:6060") - --pprof-enable Serve pprof metrics on the address defined by pprof address. - Consumes $CODER_PPROF_ENABLE - --prometheus-address string The bind address to serve prometheus metrics. - Consumes $CODER_PROMETHEUS_ADDRESS (default "127.0.0.1:2112") - --prometheus-enable Serve prometheus metrics on the address defined by prometheus address. - Consumes $CODER_PROMETHEUS_ENABLE - --provisioner-daemon-poll-interval duration Time to wait before polling for a new job. - Consumes $CODER_PROVISIONER_DAEMON_POLL_INTERVAL (default 1s) - --provisioner-daemon-poll-jitter duration Random jitter added to the poll interval. - Consumes $CODER_PROVISIONER_DAEMON_POLL_JITTER (default 100ms) - --provisioner-daemons int Number of provisioner daemons to create on start. If builds are stuck in queued state for a long time, consider increasing this. - Consumes $CODER_PROVISIONER_DAEMONS (default 3) - --provisioner-force-cancel-interval duration Time to force cancel provisioning tasks that are stuck. - Consumes $CODER_PROVISIONER_FORCE_CANCEL_INTERVAL (default 10m0s) - --proxy-trusted-headers strings Headers to trust for forwarding IP addresses. e.g. Cf-Connecting-Ip, True-Client-Ip, X-Forwarded-For - Consumes $CODER_PROXY_TRUSTED_HEADERS - --proxy-trusted-origins strings Origin addresses to respect "proxy-trusted-headers". e.g. 192.168.1.0/24 - Consumes $CODER_PROXY_TRUSTED_ORIGINS - --redirect-to-access-url Specifies whether to redirect requests that do not match the access URL host. - Consumes $CODER_REDIRECT_TO_ACCESS_URL - --secure-auth-cookie Controls if the 'Secure' property is set on browser session cookies. - Consumes $CODER_SECURE_AUTH_COOKIE - --session-duration duration The token expiry duration for browser sessions. Sessions may last longer if they are actively making requests, but this functionality can be disabled via --disable-session-expiry-refresh. - Consumes $CODER_MAX_SESSION_EXPIRY (default 24h0m0s) - --ssh-keygen-algorithm string The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096". - Consumes $CODER_SSH_KEYGEN_ALGORITHM (default "ed25519") - --strict-transport-security int Controls if the 'Strict-Transport-Security' header is set on all static file responses. This header should only be set if the server is accessed via HTTPS. This value is the MaxAge in seconds of the header. - Consumes $CODER_STRICT_TRANSPORT_SECURITY - --strict-transport-security-options strings Two optional fields can be set in the Strict-Transport-Security header; 'includeSubDomains' and 'preload'. The 'strict-transport-security' flag must be set to a non-zero value for these options to be used. - Consumes $CODER_STRICT_TRANSPORT_SECURITY_OPTIONS - --swagger-enable Expose the swagger endpoint via /swagger. - Consumes $CODER_SWAGGER_ENABLE - --telemetry Whether telemetry is enabled or not. Coder collects anonymized usage data to help improve our product. - Consumes $CODER_TELEMETRY_ENABLE (default true) - --telemetry-trace Whether Opentelemetry traces are sent to Coder. Coder collects anonymized application tracing to help improve our product. Disabling telemetry also disables this option. - Consumes $CODER_TELEMETRY_TRACE (default true) - --tls-address string HTTPS bind address of the server. - Consumes $CODER_TLS_ADDRESS (default "127.0.0.1:3443") - --tls-cert-file strings Path to each certificate for TLS. It requires a PEM-encoded file. To configure the listener to use a CA certificate, concatenate the primary certificate and the CA certificate together. The primary certificate should appear first in the combined file. - Consumes $CODER_TLS_CERT_FILE - --tls-client-auth string Policy the server will follow for TLS Client Authentication. Accepted values are "none", "request", "require-any", "verify-if-given", or "require-and-verify". - Consumes $CODER_TLS_CLIENT_AUTH (default "none") - --tls-client-ca-file string PEM-encoded Certificate Authority file used for checking the authenticity of client - Consumes $CODER_TLS_CLIENT_CA_FILE - --tls-client-cert-file string Path to certificate for client TLS authentication. It requires a PEM-encoded file. - Consumes $CODER_TLS_CLIENT_CERT_FILE - --tls-client-key-file string Path to key for client TLS authentication. It requires a PEM-encoded file. - Consumes $CODER_TLS_CLIENT_KEY_FILE - --tls-enable Whether TLS will be enabled. - Consumes $CODER_TLS_ENABLE - --tls-key-file strings Paths to the private keys for each of the certificates. It requires a PEM-encoded file. - Consumes $CODER_TLS_KEY_FILE - --tls-min-version string Minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12" or "tls13" - Consumes $CODER_TLS_MIN_VERSION (default "tls12") - --trace Whether application tracing data is collected. It exports to a backend configured by environment variables. See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md - Consumes $CODER_TRACE_ENABLE - --trace-honeycomb-api-key string Enables trace exporting to Honeycomb.io using the provided API Key. - Consumes $CODER_TRACE_HONEYCOMB_API_KEY - --trace-logs Enables capturing of logs as events in traces. This is useful for debugging, but may result in a very large amount of events being sent to the tracing backend which may incur significant costs. If the verbose flag was supplied, debug-level logs will be included. - Consumes $CODER_TRACE_CAPTURE_LOGS - --update-check Periodically check for new releases of Coder and inform the owner. The check is performed once per day. - Consumes $CODER_UPDATE_CHECK - --wildcard-access-url string Specifies the wildcard hostname to use for workspace applications in the form "*.example.com". - Consumes $CODER_WILDCARD_ACCESS_URL -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - -- [coder server create-admin-user](coder_server_create-admin-user.md) - Create a new admin user with the given username, email and password and adds it to every organization. -- [coder server postgres-builtin-serve](coder_server_postgres-builtin-serve.md) - Run the built-in PostgreSQL deployment. -- [coder server postgres-builtin-url](coder_server_postgres-builtin-url.md) - Output the connection URL for the built-in PostgreSQL deployment. diff --git a/docs/cli/coder_server_create-admin-user.md b/docs/cli/coder_server_create-admin-user.md deleted file mode 100644 index d287cc12bbb9d..0000000000000 --- a/docs/cli/coder_server_create-admin-user.md +++ /dev/null @@ -1,41 +0,0 @@ -## coder server create-admin-user - -Create a new admin user with the given username, email and password and adds it to every organization. - -``` -coder server create-admin-user [flags] -``` - -### Options - -``` - --email string The email of the new user. If not specified, you will be prompted via stdin. Consumes $CODER_EMAIL. - -h, --help help for create-admin-user - --password string The password of the new user. If not specified, you will be prompted via stdin. Consumes $CODER_PASSWORD. - --postgres-url string URL of a PostgreSQL database. If empty, the built-in PostgreSQL deployment will be used (Coder must not be already running in this case). Consumes $CODER_POSTGRES_URL. - --ssh-keygen-algorithm string The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096". Consumes $CODER_SSH_KEYGEN_ALGORITHM. (default "ed25519") - --username string The username of the new user. If not specified, you will be prompted via stdin. Consumes $CODER_USERNAME. -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder server](coder_server.md) - Start a Coder server diff --git a/docs/cli/coder_server_postgres-builtin-serve.md b/docs/cli/coder_server_postgres-builtin-serve.md deleted file mode 100644 index 26f73f7795f20..0000000000000 --- a/docs/cli/coder_server_postgres-builtin-serve.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder server postgres-builtin-serve - -Run the built-in PostgreSQL deployment. - -``` -coder server postgres-builtin-serve [flags] -``` - -### Options - -``` - -h, --help help for postgres-builtin-serve - --raw-url Output the raw connection URL instead of a psql command. -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder server](coder_server.md) - Start a Coder server diff --git a/docs/cli/coder_server_postgres-builtin-url.md b/docs/cli/coder_server_postgres-builtin-url.md deleted file mode 100644 index 871fe74682db1..0000000000000 --- a/docs/cli/coder_server_postgres-builtin-url.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder server postgres-builtin-url - -Output the connection URL for the built-in PostgreSQL deployment. - -``` -coder server postgres-builtin-url [flags] -``` - -### Options - -``` - -h, --help help for postgres-builtin-url - --raw-url Output the raw connection URL instead of a psql command. -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder server](coder_server.md) - Start a Coder server diff --git a/docs/cli/coder_show.md b/docs/cli/coder_show.md deleted file mode 100644 index a6d0f788de466..0000000000000 --- a/docs/cli/coder_show.md +++ /dev/null @@ -1,36 +0,0 @@ -## coder show - -Display details of a workspace's resources and agents - -``` -coder show [flags] -``` - -### Options - -``` - -h, --help help for show -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_speedtest.md b/docs/cli/coder_speedtest.md deleted file mode 100644 index 084389ade9270..0000000000000 --- a/docs/cli/coder_speedtest.md +++ /dev/null @@ -1,39 +0,0 @@ -## coder speedtest - -Run upload and download tests from your machine to a workspace - -``` -coder speedtest [flags] -``` - -### Options - -``` - -d, --direct Specifies whether to wait for a direct connection before testing speed. - -h, --help help for speedtest - -r, --reverse Specifies whether to run in reverse mode where the client receives and the server sends. - -t, --time duration Specifies the duration to monitor traffic. (default 5s) -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_ssh.md b/docs/cli/coder_ssh.md deleted file mode 100644 index 085b847491978..0000000000000 --- a/docs/cli/coder_ssh.md +++ /dev/null @@ -1,48 +0,0 @@ -## coder ssh - -Start a shell into a workspace - -``` -coder ssh [flags] -``` - -### Options - -``` - -A, --forward-agent Specifies whether to forward the SSH agent specified in $SSH_AUTH_SOCK. - Consumes $CODER_SSH_FORWARD_AGENT - -G, --forward-gpg Specifies whether to forward the GPG agent. Unsupported on Windows workspaces, but supports all clients. Requires gnupg (gpg, gpgconf) on both the client and workspace. The GPG agent must already be running locally and will not be started for you. If a GPG agent is already running in the workspace, it will be attempted to be killed. - Consumes $CODER_SSH_FORWARD_GPG - -h, --help help for ssh - --identity-agent string Specifies which identity agent to use (overrides $SSH_AUTH_SOCK), forward agent must also be enabled. - Consumes $CODER_SSH_IDENTITY_AGENT - --no-wait Specifies whether to wait for a workspace to become ready before logging in (only applicable when the login before ready option has not been enabled). Note that the workspace agent may still be in the process of executing the startup script and the workspace may be in an incomplete state. - Consumes $CODER_SSH_NO_WAIT - --stdio Specifies whether to emit SSH output over stdin/stdout. - Consumes $CODER_SSH_STDIO - --workspace-poll-interval duration Specifies how often to poll for workspace automated shutdown. - Consumes $CODER_WORKSPACE_POLL_INTERVAL (default 1m0s) -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_start.md b/docs/cli/coder_start.md deleted file mode 100644 index 021b51eceb686..0000000000000 --- a/docs/cli/coder_start.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder start - -Start a workspace - -``` -coder start [flags] -``` - -### Options - -``` - -h, --help help for start - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_state.md b/docs/cli/coder_state.md deleted file mode 100644 index ddd57980133ff..0000000000000 --- a/docs/cli/coder_state.md +++ /dev/null @@ -1,38 +0,0 @@ -## coder state - -Manually manage Terraform state to fix broken workspaces - -``` -coder state [flags] -``` - -### Options - -``` - -h, --help help for state -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - -- [coder state pull](coder_state_pull.md) - -- [coder state push](coder_state_push.md) - diff --git a/docs/cli/coder_state_pull.md b/docs/cli/coder_state_pull.md deleted file mode 100644 index f04373f60e75f..0000000000000 --- a/docs/cli/coder_state_pull.md +++ /dev/null @@ -1,35 +0,0 @@ -## coder state pull - -``` -coder state pull [file] [flags] -``` - -### Options - -``` - -b, --build int Specify a workspace build to target by name. - -h, --help help for pull -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder state](coder_state.md) - Manually manage Terraform state to fix broken workspaces diff --git a/docs/cli/coder_state_push.md b/docs/cli/coder_state_push.md deleted file mode 100644 index a24878825fc7c..0000000000000 --- a/docs/cli/coder_state_push.md +++ /dev/null @@ -1,35 +0,0 @@ -## coder state push - -``` -coder state push [flags] -``` - -### Options - -``` - -b, --build int Specify a workspace build to target by name. - -h, --help help for push -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder state](coder_state.md) - Manually manage Terraform state to fix broken workspaces diff --git a/docs/cli/coder_stop.md b/docs/cli/coder_stop.md deleted file mode 100644 index de6c86cace3ba..0000000000000 --- a/docs/cli/coder_stop.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder stop - -Stop a workspace - -``` -coder stop [flags] -``` - -### Options - -``` - -h, --help help for stop - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - diff --git a/docs/cli/coder_templates.md b/docs/cli/coder_templates.md deleted file mode 100644 index d7b9eaa274396..0000000000000 --- a/docs/cli/coder_templates.md +++ /dev/null @@ -1,65 +0,0 @@ -## coder templates - -Manage templates - -### Synopsis - -Templates are written in standard Terraform and describe the infrastructure for workspaces - -``` -coder templates [flags] -``` - -### Examples - -``` - - Create a template for developers to create workspaces: - - $ coder templates create - - - Make changes to your template, and plan the changes: - - $ coder templates plan my-template - - - Push an update to the template. Your developers can update their workspaces: - - $ coder templates push my-template -``` - -### Options - -``` - -h, --help help for templates -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder](coder.md) - -- [coder templates create](coder_templates_create.md) - Create a template from the current directory or as specified by flag -- [coder templates delete](coder_templates_delete.md) - Delete templates -- [coder templates edit](coder_templates_edit.md) - Edit the metadata of a template by name. -- [coder templates init](coder_templates_init.md) - Get started with a templated template. -- [coder templates list](coder_templates_list.md) - List all the templates available for the organization -- [coder templates plan](coder_templates_plan.md) - Plan a template push from the current directory -- [coder templates pull](coder_templates_pull.md) - Download the latest version of a template to a path. -- [coder templates push](coder_templates_push.md) - Push a new template version from the current directory or as specified by flag -- [coder templates versions](coder_templates_versions.md) - Manage different versions of the specified template diff --git a/docs/cli/coder_templates_create.md b/docs/cli/coder_templates_create.md deleted file mode 100644 index 67b1df12f89f9..0000000000000 --- a/docs/cli/coder_templates_create.md +++ /dev/null @@ -1,43 +0,0 @@ -## coder templates create - -Create a template from the current directory or as specified by flag - -``` -coder templates create [name] [flags] -``` - -### Options - -``` - --default-ttl duration Specify a default TTL for workspaces created from this template. (default 24h0m0s) - -d, --directory string Specify the directory to create from, use '-' to read tar from stdin (default "") - -h, --help help for create - --parameter-file string Specify a file path with parameter values. - --provisioner-tag stringArray Specify a set of tags to target provisioner daemons. - --variable stringArray Specify a set of values for Terraform-managed variables. - --variables-file string Specify a file path with values for Terraform-managed variables. - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder templates](coder_templates.md) - Manage templates diff --git a/docs/cli/coder_templates_delete.md b/docs/cli/coder_templates_delete.md deleted file mode 100644 index 0df1927524b3b..0000000000000 --- a/docs/cli/coder_templates_delete.md +++ /dev/null @@ -1,37 +0,0 @@ -## coder templates delete - -Delete templates - -``` -coder templates delete [name...] [flags] -``` - -### Options - -``` - -h, --help help for delete - -y, --yes Bypass prompts -``` - -### Options inherited from parent commands - -``` - --global-config coder Path to the global coder config directory. - Consumes $CODER_CONFIG_DIR (default "~/.config/coderv2") - --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 -``` - -### SEE ALSO - -- [coder templates](coder_templates.md) - Manage templates diff --git a/docs/cli/coder_templates_edit.md b/docs/cli/coder_templates_edit.md deleted file mode 100644 index dcd89df4c81e5..0000000000000 --- a/docs/cli/coder_templates_edit.md +++ /dev/null @@ -1,43 +0,0 @@ -## coder templates edit - -Edit the metadata of a template by name. - -``` -coder templates edit