Skip to content

docs(cli): replace v1-only command sections with v2 equivalents - #58016

Closed
KasabuNikhilGoud wants to merge 2 commits into
anomalyco:devfrom
KasabuNikhilGoud:cli-docs-cleanup
Closed

KasabuNikhilGoud wants to merge 2 commits into
anomalyco:devfrom
KasabuNikhilGoud:cli-docs-cleanup

Conversation

@KasabuNikhilGoud

@KasabuNikhilGoud KasabuNikhilGoud commented Oct 22, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #57957

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

A reader following the CLI docs page would run v1 commands (opencode attach, web, db, export, import, github, pr) that no longer exist in v2. I removed the five sections whose commands are gone, documented the real v2 replacements (opencode session export|import) where they live under session, and noted on serve that it serves the web interface and that opencode --server <url> connects a remote server. The OPENCODE_SERVER_PASSWORD env table row no longer mentions web.

Also points the download FAQ's web link at /docs/web since /docs/cli/#web no longer exists (flagged in review). Translated CLI docs and other stale flag tables are left for a follow-up.

How did I verify my code works?

Compared every edited section against the v2 command registry (packages/cli/src/commands/commands.ts): no remaining documented command is unregistered. Grepped the page for references to removed commands. Docs change; nothing to run.

Screenshots / recordings

Not applicable (no UI change).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #51574, #56800

Remove the attach, github, web, pr and db sections, whose commands no
longer exist in v2, and fold session export/import into the session
section where the v2 equivalents live.

Closes anomalyco#57957
Copilot AI balanced review requested due to automatic review settings October 22, 2026 03:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks correct. I compared each edited section with packages/cli/src/commands/commands.ts: all seven v1 ### sections are gone, and every remaining top-level section matches a registered command. The session export/session import usage and flags, the root --server flag and the claim that serve also serves the web interface all match the code. Docs-only change, so there was nothing to run.

Public API: unchanged (documentation only).

One thing worth fixing: packages/console/app/src/routes/download/index.tsx (line 414) links to /docs/cli/#web. That section no longer exists after this change, so the download page FAQ link will open the top of the CLI page instead. Pointing it at /docs/web or /docs/cli/#serve would keep it working. Other English pages (web.mdx, server.mdx, config.mdx, windows-wsl.mdx) and the translated cli.mdx copies still mention opencode web/opencode attach. Leaving those for a follow-up, as you noted, is fine.

Related: #51574, #56800

/docs/cli/#web stopped existing after the v1 web section was removed
from the CLI docs page.

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The download page FAQ link I flagged now points at /docs/web, which is an existing page, so that point is addressed. The new commit raises nothing else. Public API: unchanged.

@LuisAlbertoMK

Copy link
Copy Markdown

So the translation cleanup does not get lost while this lands: #58207 removes the attach section from the 17 translated cli.mdx files and leaves the English page to you, so the two diffs do not overlap.

It also fixes the run section here, which this PR does not touch: the example and the flag row still pass --attach (opencode run --server http://localhost:4096 ... is the v2 form), and the same table lists --command, --dir, --port, --variant, --password and --username, none of which exist on dev.

If you would rather fold either into this PR, say so and I will close #58207.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Oct 25, 2026
@github-actions github-actions Bot closed this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: the /docs page still documents seven v1 commands that do not exist in v2

3 participants