diff --git a/cli/root.go b/cli/root.go
index 816d7b769eb0d..5e7b7fce6984b 100644
--- a/cli/root.go
+++ b/cli/root.go
@@ -433,7 +433,7 @@ func (r *RootCmd) Command(subcommands []*serpent.Command) (*serpent.Command, err
{
Flag: varForceTty,
Env: "CODER_FORCE_TTY",
- Hidden: true,
+ Hidden: false,
Description: "Force the use of a TTY.",
Value: serpent.BoolOf(&r.forceTTY),
Group: globalGroup,
diff --git a/cli/testdata/coder_--help.golden b/cli/testdata/coder_--help.golden
index 4e0a5e92f63b5..5a3ad462cdae8 100644
--- a/cli/testdata/coder_--help.golden
+++ b/cli/testdata/coder_--help.golden
@@ -79,6 +79,9 @@ variables or flags.
Coder. Network telemetry is used to measure network quality and detect
regressions.
+ --force-tty bool, $CODER_FORCE_TTY
+ Force the use of a TTY.
+
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
Path to the global `coder` config directory.
diff --git a/docs/reference/cli/index.md b/docs/reference/cli/index.md
index 9ad8f5590e727..1803fd460c65b 100644
--- a/docs/reference/cli/index.md
+++ b/docs/reference/cli/index.md
@@ -131,6 +131,15 @@ Additional HTTP headers added to all requests. Provide as key=value. Can be spec
An external command that outputs additional HTTP headers added to all requests. The command must output each header as `key=value` on its own line.
+### --force-tty
+
+| | |
+|-------------|-------------------------------|
+| Type | bool
|
+| Environment | $CODER_FORCE_TTY
|
+
+Force the use of a TTY.
+
### -v, --verbose
| | |
diff --git a/enterprise/cli/testdata/coder_--help.golden b/enterprise/cli/testdata/coder_--help.golden
index ca5d8c8c886ef..1522921a3efdd 100644
--- a/enterprise/cli/testdata/coder_--help.golden
+++ b/enterprise/cli/testdata/coder_--help.golden
@@ -37,6 +37,9 @@ variables or flags.
Coder. Network telemetry is used to measure network quality and detect
regressions.
+ --force-tty bool, $CODER_FORCE_TTY
+ Force the use of a TTY.
+
--global-config string, $CODER_CONFIG_DIR (default: ~/.config/coderv2)
Path to the global `coder` config directory.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: