mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
fix(docs): use correct kebab-case CLI flags in OpenCode guide (take 2) (#8766)
* initial commit * update the date
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user