diff --git a/cli/root.go b/cli/root.go index 27330c856fd4b..a5c77417bf335 100644 --- a/cli/root.go +++ b/cli/root.go @@ -447,6 +447,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err Env: "CODER_ORGANIZATION", Description: "Select which organization (uuid or name) to use This overrides what is present in the config file.", Value: serpent.StringOf(&r.organizationSelect), + Hidden: true, Group: globalGroup, }, { diff --git a/cli/testdata/coder_--help.golden b/cli/testdata/coder_--help.golden index fc0785ee92814..501a336915128 100644 --- a/cli/testdata/coder_--help.golden +++ b/cli/testdata/coder_--help.golden @@ -82,10 +82,6 @@ variables or flags. --no-version-warning bool, $CODER_NO_VERSION_WARNING Suppress warning when client and server versions do not match. - -z, --organization string, $CODER_ORGANIZATION - Select which organization (uuid or name) to use This overrides what is - present in the config file. - --token string, $CODER_SESSION_TOKEN Specify an authentication token. For security reasons setting CODER_SESSION_TOKEN is preferred. diff --git a/docs/cli.md b/docs/cli.md index 96d0fc635852c..93236d5c5e3a4 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -157,13 +157,3 @@ Disable direct (P2P) connections to workspaces. | Default | ~/.config/coderv2 | Path to the global `coder` config directory. - -### -z, --organization - -| | | -| ----------- | -------------------------------- | -| Type | string | -| Environment | $CODER_ORGANIZATION | - -Select which organization (uuid or name) to use This overrides what is present -in the config file. diff --git a/enterprise/cli/testdata/coder_--help.golden b/enterprise/cli/testdata/coder_--help.golden index c8612392972f0..7c2ff5c835dff 100644 --- a/enterprise/cli/testdata/coder_--help.golden +++ b/enterprise/cli/testdata/coder_--help.golden @@ -48,10 +48,6 @@ variables or flags. --no-version-warning bool, $CODER_NO_VERSION_WARNING Suppress warning when client and server versions do not match. - -z, --organization string, $CODER_ORGANIZATION - Select which organization (uuid or name) to use This overrides what is - present in the config file. - --token string, $CODER_SESSION_TOKEN Specify an authentication token. For security reasons setting CODER_SESSION_TOKEN is preferred.