Skip to content

docs(cli): drop the export and import commands from the translated CLI docs - #58210

Closed
LuisAlbertoMK wants to merge 1 commit into
anomalyco:devfrom
LuisAlbertoMK:cli-locale-export-import
Closed

LuisAlbertoMK wants to merge 1 commit into
anomalyco:devfrom
LuisAlbertoMK:cli-locale-export-import

Conversation

@LuisAlbertoMK

@LuisAlbertoMK LuisAlbertoMK commented Oct 22, 2026 •

Copy link
Copy Markdown

Issue for this PR

Part of #57957. Third and last of the translated-docs PRs; #58207 covers attach, #58209 covers web and github, and #58016 covers the English page.

Type of change

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

What does this PR do?

opencode export and opencode import are not v2 commands: opencode --help lists neither, and session export/import are subcommands of opencode session. #58016 moves them under session on the English page.

This removes the two top-level sections from the 17 translated cli.mdx files. It is deletions only, with no new translated prose: the locales already lag behind the English page, and session export/session import can be documented there in a later translation pass rather than in this cleanup.

The three locale PRs touch different sections of the same files, so they can merge in any order.

How did you verify your code works?

Against a source build of dev (cdf1c200a6), from packages/cli, bun run src/index.ts --help:

  • export and import appear nowhere in the command list.
  • session is listed; bun run src/index.ts session --help shows export and import under it.

For the diff itself:

  • All 17 files are deletions only (0 insertions), so there is no encoding or line-ending churn.
  • The diff removes exactly two ### headings per file and adds no lines.
  • Heading count goes 17 → 15 in every locale (17 minus export and import), and no --- separator is doubled or lost.
  • Code fences stay balanced (76 per file).
  • prettier --check reports the same result for the origin/dev file and the patched file, so the deletion does not change formatting.

Screenshots / recordings

Not a 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: #57957

…I docs

\opencode export\ and \opencode import\ are not v2 commands; \opencode --help\ lists neither, and session export/import live under \opencode session\. anomalyco#58016 moves them there in the English page.

This removes the two top-level sections from the 17 translated cli.mdx files as deletions only. The locales can document \session export\ and \session import\ in a later translation pass; they already lag behind the English page.

Part of anomalyco#57957.

@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.

Looks good. It removes the v1-only top-level export/import sections from all 17 translated CLI pages. I checked the diff per locale: every file loses exactly the two sections (26 lines, no additions), each ends with 15 ### headings, no --- separator is doubled or lost, and no page links to the removed anchors. On the latest dev the v2 equivalents are opencode session export/session import, as described.

Public API is unchanged (documentation only).

One note: the description says the three locale PRs can merge in any order, but this one and #58209 conflict in all 17 files. The removed ### import block sits right next to ### web, so the hunks touch. #58207 merges cleanly with it. Whichever of this PR and #58209 lands second will need a rebase; keeping both deletions resolves it.

Related: #57957

@Tarquinen

Copy link
Copy Markdown
Member

Thanks for the PR! The /docs pages are the legacy docs for OpenCode 1 users, and these commands still exist in 1.x, so we're keeping them there. The OpenCode 2 CLI is documented at https://opencode.ai/v2/docs/cli. Closing this PR.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@Tarquinen Tarquinen closed this Nov 2, 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.

2 participants