mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
feat(cli): select individual debug paths (#48216)
This commit is contained in:
@@ -57,6 +57,25 @@ opencode2 --server http://localhost:4096
|
||||
|
||||
See [Troubleshooting](/troubleshooting) for shared service diagnostics and the [API reference](/api) for server endpoints.
|
||||
|
||||
## Paths
|
||||
|
||||
Print a specific local path for use with other tools:
|
||||
|
||||
```bash
|
||||
opencode2 debug paths db
|
||||
sqlite3 "$(opencode2 debug paths db)"
|
||||
```
|
||||
|
||||
The optional selector accepts `db`, `home`, `data`, `config`, `cache`, `state`, `tmp`, `bin`, `log`, or `repos` and prints
|
||||
only the path and a newline. The database path respects the release channel and `OPENCODE_DB`; relative database overrides
|
||||
resolve under the data directory, and `:memory:` is printed as-is. This command does not start a server or open the database.
|
||||
|
||||
Omit the selector to show all paths with labels:
|
||||
|
||||
```bash
|
||||
opencode2 debug paths
|
||||
```
|
||||
|
||||
## Uninstall
|
||||
|
||||
Preview the files and installation that will be removed:
|
||||
|
||||
Reference in New Issue
Block a user