mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 22:44:37 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,20 +5,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opencode
|
||||
|
||||
> AI coding agent.
|
||||
> An AI coding agent.
|
||||
> More information: <https://opencode.ai/docs/cli/>.
|
||||
|
||||
- Start the interactive terminal UI:
|
||||
- Start the interactive TUI:
|
||||
|
||||
`opencode`
|
||||
|
||||
- Run opencode in non-interactive mode by passing a prompt directly:
|
||||
|
||||
`opencode run "{{message}}"`
|
||||
|
||||
- Use a specific model and agent:
|
||||
|
||||
`opencode run {{[-m|--model]}} {{provider}}/{{model}} --agent {{agent_name}} "{{message}}"`
|
||||
|
||||
- List all available models from configured providers:
|
||||
|
||||
`opencode models`
|
||||
|
||||
- Run opencode in a non-interactive mode by passing a prompt directly:
|
||||
- Manage credentials and login for providers:
|
||||
|
||||
`opencode run {{message}}`
|
||||
`opencode auth login`
|
||||
|
||||
- Start a headless opencode server for API access:
|
||||
|
||||
`opencode serve {{[-h|--hostname]}} {{hostname}} {{[-p|--port]}} {{port}}`
|
||||
|
||||
- Manage AI assistant agents for OpenCode:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user