mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
feat: add OPENCODE_CONFIG env var for specifying a custom config file (#1370)
This commit is contained in:
parent
a7cfd36b07
commit
862a50d61d
3 changed files with 19 additions and 0 deletions
|
|
@ -34,6 +34,17 @@ This is also safe to be checked into Git and uses the same schema as the global
|
|||
|
||||
---
|
||||
|
||||
### Custom config file
|
||||
|
||||
You can specify a custom config file using the `OPENCODE_CONFIG` environment variable. This takes precedence over the global and project configs.
|
||||
|
||||
```bash
|
||||
export OPENCODE_CONFIG=/path/to/my/custom-config.json
|
||||
opencode run "Hello world"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Schema
|
||||
|
||||
The config file has a schema that's defined in [**`opencode.ai/config.json`**](https://opencode.ai/config.json).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue