diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx
index 8ecb6a6eb9..ac8a1a3044 100644
--- a/packages/web/src/content/docs/cli.mdx
+++ b/packages/web/src/content/docs/cli.mdx
@@ -61,37 +61,6 @@ opencode agent [command]
---
-### attach
-
-Attach a terminal to an already running OpenCode backend server started via `serve` or `web` commands.
-
-```bash
-opencode attach [url]
-```
-
-This allows using the TUI with a remote OpenCode backend. For example:
-
-```bash
-# Start the backend server for web/mobile access
-opencode web --port 4096 --hostname 0.0.0.0
-
-# In another terminal, attach the TUI to the running backend
-opencode attach http://10.20.30.40:4096
-```
-
-#### Flags
-
-| Flag | Short | Description |
-| ---------------------------------------- | ----- | -------------------------------------------------------------------------- |
-| {"--dir"} | | Working directory to start TUI in |
-| {"--continue"} | `-c` | Continue the last session |
-| {"--session"} | `-s` | Session ID to continue |
-| {"--fork"} | | Fork the session when continuing (use with `--continue` or `--session`) |
-| {"--password"} | `-p` | Basic auth password (defaults to `OPENCODE_SERVER_PASSWORD`) |
-| {"--username"} | `-u` | Basic auth username (defaults to `OPENCODE_SERVER_USERNAME` or `opencode`) |
-
----
-
#### create
Create a new agent with custom configuration.
@@ -126,6 +95,37 @@ opencode agent list
---
+### attach
+
+Attach a terminal to an already running OpenCode backend server started via `serve` or `web` commands.
+
+```bash
+opencode attach [url]
+```
+
+This allows using the TUI with a remote OpenCode backend. For example:
+
+```bash
+# Start the backend server for web/mobile access
+opencode web --port 4096 --hostname 0.0.0.0
+
+# In another terminal, attach the TUI to the running backend
+opencode attach http://10.20.30.40:4096
+```
+
+#### Flags
+
+| Flag | Short | Description |
+| ---------------------------------------- | ----- | -------------------------------------------------------------------------- |
+| {"--dir"} | | Working directory to start TUI in |
+| {"--continue"} | `-c` | Continue the last session |
+| {"--session"} | `-s` | Session ID to continue |
+| {"--fork"} | | Fork the session when continuing (use with `--continue` or `--session`) |
+| {"--password"} | `-p` | Basic auth password (defaults to `OPENCODE_SERVER_PASSWORD`) |
+| {"--username"} | `-u` | Basic auth username (defaults to `OPENCODE_SERVER_USERNAME` or `opencode`) |
+
+---
+
### auth
Command to manage credentials and login for providers.