src do

Run OpenCode with a prompt in headless mode using SourceCraft configuration.

Usage

src do <message> [flags]

Flags

Flag Description
--autoinstall Auto-install OpenCode if not present (for Autoinstall environments)
--log-llm Log LLM requests to files (via local proxy)
--model string Model to use: ds, legacy, ds-alt (overrides config)
--no-tools Do not load sourcecraft API tools, commands and modes
--reset-config Reset configuration to defaults before launching

Inherited flags

Flag Description
--env string Override Sourcecraft environment (use 'src envs' to list available)
--json string Output JSON, optionally filtered (--json or --json=field1,field2)
--json-compact string Output compact JSON, optionally filtered
--plain Output without colors/styling (for LLM consumption)
-R, --repo string Select another repository using OWNER/REPO format
-V, --verbose Enable debug logging output

Learn more

Use src do <subcommand> --help for more information about a command.

Предыдущая
Следующая