| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623 |
- // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode acp --help 1`] = `
- "opencode acp
- start ACP (Agent Client Protocol) server
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --port port to listen on [number] [default: 0]
- --hostname hostname to listen on [string] [default: "127.0.0.1"]
- --mdns enable mDNS service discovery (defaults hostname to 0.0.0.0)
- [boolean] [default: false]
- --mdns-domain custom domain name for mDNS service (default: opencode.local)
- [string] [default: "opencode.local"]
- --cors additional domains to allow for CORS [array] [default: []]
- --cwd working directory [string] [default: "<HOME>"]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode mcp --help 1`] = `
- "opencode mcp
- manage MCP (Model Context Protocol) servers
- Commands:
- opencode mcp add [name] add an MCP server
- opencode mcp list list MCP servers and their status [aliases: ls]
- opencode mcp auth [name] authenticate with an OAuth-enabled MCP server
- opencode mcp logout [name] remove OAuth credentials for an MCP server
- opencode mcp debug <name> debug OAuth connection for an MCP server
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode attach --help 1`] = `
- "opencode attach <url>
- attach to a running opencode server
- Positionals:
- url http://localhost:4096 [string] [required]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --dir directory to run in [string]
- -c, --continue continue the last session [boolean]
- -s, --session session id to continue [string]
- --fork fork the session when continuing (use with --continue or --session) [boolean]
- -p, --password basic auth password (defaults to OPENCODE_SERVER_PASSWORD) [string]
- -u, --username basic auth username (defaults to OPENCODE_SERVER_USERNAME or 'opencode')
- [string]
- --mini start the minimal interactive interface [boolean] [default: false]
- --no-replay disable mini session history replay on resume and after resize [boolean]
- --replay-limit cap visible mini replay to the newest N messages [number]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode run --help 1`] = `
- "opencode run [message..]
- run opencode with a message
- Positionals:
- message message to send [array] [default: []]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --command the command to run, use message for args [string]
- -c, --continue continue the last session [boolean]
- -s, --session session id to continue [string]
- --fork fork the session before continuing (requires --continue or --session) [boolean]
- --share share the session [boolean]
- -m, --model model to use in the format of provider/model [string]
- --agent agent to use [string]
- --format format: default (formatted) or json (raw JSON events)
- [string] [choices: "default", "json"] [default: "default"]
- -f, --file file(s) to attach to message [array]
- --title title for the session (uses truncated prompt if no value provided) [string]
- --attach attach to a running opencode server (e.g., http://localhost:4096) [string]
- -p, --password basic auth password (defaults to OPENCODE_SERVER_PASSWORD) [string]
- -u, --username basic auth username (defaults to OPENCODE_SERVER_USERNAME or 'opencode')
- [string]
- --dir directory to run in, path on remote server if attaching [string]
- --port port for the local server (defaults to random port if no value provided)
- [number]
- --variant model variant (provider-specific reasoning effort, e.g., high, max, minimal)
- [string]
- --thinking show thinking blocks [boolean]
- -i, --interactive run in direct interactive split-footer mode [boolean] [default: false]
- --auto auto-approve permissions that are not explicitly denied (dangerous!)
- [boolean] [default: false]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode debug --help 1`] = `
- "opencode debug
- debugging and troubleshooting tools
- Commands:
- opencode debug config show resolved configuration
- opencode debug lsp LSP debugging utilities
- opencode debug rg ripgrep debugging utilities
- opencode debug file file system debugging utilities
- opencode debug scrap list all known projects
- opencode debug skill list all available skills
- opencode debug snapshot snapshot debugging utilities
- opencode debug startup print startup timing
- opencode debug agent <name> show agent configuration details
- opencode debug v2 debug v2 catalog and built-in plugins
- opencode debug info show debug information
- opencode debug paths show global paths (data, config, cache, state)
- opencode debug wait wait indefinitely (for debugging)
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode providers --help 1`] = `
- "opencode providers
- manage AI providers and credentials
- Commands:
- opencode providers list list providers and credentials [aliases: ls]
- opencode providers login [url] log in to a provider
- opencode providers logout [provider] log out from a configured provider
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode agent --help 1`] = `
- "opencode agent
- manage agents
- Commands:
- opencode agent create create a new agent
- opencode agent list list all available agents
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode upgrade --help 1`] = `
- "opencode upgrade [target]
- upgrade opencode to the latest or a specific version
- Positionals:
- target version to upgrade to, for ex '0.1.48' or 'v0.1.48' [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- -m, --method installation method to use
- [string] [choices: "curl", "npm", "pnpm", "bun", "brew", "choco", "scoop"]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode uninstall --help 1`] = `
- "opencode uninstall
- uninstall opencode and remove all related files
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- -c, --keep-config keep configuration files [boolean] [default: false]
- -d, --keep-data keep session data and snapshots [boolean] [default: false]
- --dry-run show what would be removed without removing [boolean] [default: false]
- -f, --force skip confirmation prompts [boolean] [default: false]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode serve --help 1`] = `
- "opencode serve
- starts a headless opencode server
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --port port to listen on [number] [default: 0]
- --hostname hostname to listen on [string] [default: "127.0.0.1"]
- --mdns enable mDNS service discovery (defaults hostname to 0.0.0.0)
- [boolean] [default: false]
- --mdns-domain custom domain name for mDNS service (default: opencode.local)
- [string] [default: "opencode.local"]
- --cors additional domains to allow for CORS [array] [default: []]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode web --help 1`] = `
- "opencode web
- start opencode server and open web interface
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --port port to listen on [number] [default: 0]
- --hostname hostname to listen on [string] [default: "127.0.0.1"]
- --mdns enable mDNS service discovery (defaults hostname to 0.0.0.0)
- [boolean] [default: false]
- --mdns-domain custom domain name for mDNS service (default: opencode.local)
- [string] [default: "opencode.local"]
- --cors additional domains to allow for CORS [array] [default: []]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode models --help 1`] = `
- "opencode models [provider]
- list all available models
- Positionals:
- provider provider ID to filter models by [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --verbose use more verbose model output (includes metadata like costs) [boolean]
- --refresh refresh the models cache from models.dev [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode stats --help 1`] = `
- "opencode stats
- show token usage and cost statistics
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --days show stats for the last N days (default: all time) [number]
- --tools number of tools to show (default: all) [number]
- --models show model statistics (default: hidden). Pass a number to show top N, otherwise
- shows all
- --project filter by project (default: all projects, empty string: current project)[string]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode export --help 1`] = `
- "opencode export [sessionID]
- export session data as JSON
- Positionals:
- sessionID session id to export [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --sanitize redact sensitive transcript and file data [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode import --help 1`] = `
- "opencode import <file>
- import session data from JSON file or URL
- Positionals:
- file path to JSON file or share URL [string] [required]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode github --help 1`] = `
- "opencode github
- manage GitHub agent
- Commands:
- opencode github install install the GitHub agent
- opencode github run run the GitHub agent
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode pr --help 1`] = `
- "opencode pr <number>
- fetch and checkout a GitHub PR branch, then run opencode
- Positionals:
- number PR number to checkout [number] [required]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode session --help 1`] = `
- "opencode session
- manage sessions
- Commands:
- opencode session list list sessions
- opencode session delete <sessionID> delete a session
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode plugin --help 1`] = `
- "opencode plugin <module>
- install plugin and update config
- Positionals:
- module npm module name [string] [required]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- -g, --global install in global config [boolean] [default: false]
- -f, --force replace existing plugin version [boolean] [default: false]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode db --help 1`] = `
- "opencode db
- database tools
- Commands:
- opencode db [query] open an interactive sqlite3 shell or run a query [default]
- opencode db path print the database path
- Positionals:
- query SQL query to execute [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --format Output format [string] [choices: "json", "tsv"] [default: "tsv"]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode mcp list --help 1`] = `
- "opencode mcp list
- list MCP servers and their status
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode mcp add --help 1`] = `
- "opencode mcp add [name]
- add an MCP server
- Positionals:
- name name of the MCP server [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --url URL for a remote MCP server [string]
- --env environment variable for a local MCP server (KEY=VALUE) [array]
- --header HTTP header for a remote MCP server (KEY=VALUE) [array]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode mcp auth --help 1`] = `
- "opencode mcp auth [name]
- authenticate with an OAuth-enabled MCP server
- Commands:
- opencode mcp auth list list OAuth-capable MCP servers and their auth status [aliases: ls]
- Positionals:
- name name of the MCP server [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode mcp logout --help 1`] = `
- "opencode mcp logout [name]
- remove OAuth credentials for an MCP server
- Positionals:
- name name of the MCP server [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode providers list --help 1`] = `
- "opencode providers list
- list providers and credentials
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode providers login --help 1`] = `
- "opencode providers login [url]
- log in to a provider
- Positionals:
- url opencode auth provider [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- -p, --provider provider id or name to log in to (skips provider selection) [string]
- -m, --method login method label (skips method selection) [string]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode providers logout --help 1`] = `
- "opencode providers logout [provider]
- log out from a configured provider
- Positionals:
- provider provider id or name to log out from [string]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode agent create --help 1`] = `
- "opencode agent create
- create a new agent
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --path directory path to generate the agent file [string]
- --description what the agent should do [string]
- --mode agent mode [string] [choices: "all", "primary", "subagent"]
- --permissions, --tools comma-separated list of permissions to allow (default: all).
- Available: "bash, read, edit, glob, grep, webfetch, task, todowrite,
- websearch, lsp, skill" [string]
- -m, --model model to use in the format of provider/model [string]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode agent list --help 1`] = `
- "opencode agent list
- list all available agents
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode session list --help 1`] = `
- "opencode session list
- list sessions
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- -n, --max-count limit to N most recent sessions [number]
- --format output format [string] [choices: "table", "json"] [default: "table"]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode session delete --help 1`] = `
- "opencode session delete <sessionID>
- delete a session
- Positionals:
- sessionID session ID to delete [string] [required]
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode github install --help 1`] = `
- "opencode github install
- install the GitHub agent
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode github run --help 1`] = `
- "opencode github run
- run the GitHub agent
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]
- --event GitHub mock event to run the agent for [string]
- --token GitHub personal access token (github_pat_********) [string]"
- `;
- exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode db path --help 1`] = `
- "opencode db path
- print the database path
- Options:
- -h, --help show help [boolean]
- -v, --version show version number [boolean]
- --print-logs print logs to stderr [boolean]
- --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
- --pure run without external plugins [boolean]"
- `;
|