fix(docs): use correct kebab-case CLI flags in OpenCode guide (take 2) (#8766)

* initial commit

* update the date
This commit is contained in:
Jay Ongg
2026-07-27 13:26:03 -07:00
committed by GitHub
parent 474a3df998
commit 68095ad13d

View File

@@ -1,7 +1,7 @@
---
title: "OpenCode Integration"
version: 3.8.40
lastUpdated: 2026-06-28
lastUpdated: 2027-07-27
---
# OpenCode Integration
@@ -24,8 +24,8 @@ Recommended for end users. Ships with OmniRoute. Writes `opencode.json` in place
```bash
# After installing OmniRoute (npm i -g @omniroute/cli or local clone)
omniroute config opencode \
--baseUrl http://localhost:20128 \
--apiKey "$OMNIROUTE_API_KEY"
--base-url http://localhost:20128 \
--api-key "$OMNIROUTE_API_KEY"
```
Behind the scenes the CLI calls `mergeOpenCodeConfigText()` (`src/shared/services/opencodeConfig.ts:104`), so an existing `opencode.json` keeps its other providers and comments. The OmniRoute entry is added/replaced atomically.