feat(cli): select individual debug paths (#48216)

This commit is contained in:
Dax
2026-09-09 16:11:21 -04:00
committed by GitHub
Unverified
parent 7f2510c5ca
commit 7fb79388a4
5 changed files with 63 additions and 11 deletions
@@ -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: