From 37f3e239c61f4b997ef5329261fc1472aef9570d Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2026 19:34:08 -0500 Subject: [PATCH] docs(cli): fix command examples (#52603) Co-authored-by: rekram1-node --- services/www/src/docs/content/cli/commands.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/www/src/docs/content/cli/commands.mdx b/services/www/src/docs/content/cli/commands.mdx index da0786f7190..b7f8a512b00 100644 --- a/services/www/src/docs/content/cli/commands.mdx +++ b/services/www/src/docs/content/cli/commands.mdx @@ -3,7 +3,7 @@ title: "Commands" description: "Reference for the opencode command line." --- -Every command accepts `--help` for its full flag list, for example `opencode run --help`. Commands that talk to a server also accept `--standalone` to run a private server and `--server ` to target a specific one. +Every command accepts `--help` for its full flag list, for example `opencode run --help`. Some server-backed commands accept `--standalone` to run a private server or `--server ` to target a specific one; check the command's help for its supported flags. ## run @@ -167,7 +167,7 @@ $ opencode auth login anthropic Log in with a specific authentication method. ```bash -$ opencode auth login anthropic --method api-key +$ opencode auth login anthropic --method key ``` Log out of a saved account. @@ -462,13 +462,13 @@ $ opencode api GET /api/session Call an operation ID with a query parameter. ```bash -$ opencode api v2.session.list --param limit=10 +$ opencode api session.list --param limit=10 ``` Send a JSON body. ```bash -$ opencode api v2.session.create --data '{"title": "New session"}' +$ opencode api session.create --data '{"title": "New session"}' ``` Add a request header. @@ -540,7 +540,7 @@ $ opencode upgrade Upgrade to a specific version with a specific package manager. ```bash -$ opencode upgrade 1.18.15 --method bun +$ opencode upgrade 2.0.21 --method bun ``` View all subcommands and flags.