src

Work with SourceCraft from the command line.

Usage

src <command> <subcommand> [flags]

Agentic code workflow

Command Description
code Launch OpenCode with SourceCraft configuration
codereview Run a skill codereview in headless mode
do Run OpenCode with a prompt in headless mode
ipc Run the IPC server
prdescription Run a skill codereview in headless mode
skill Run a skill in headless mode

Core commands

Command Description
auth Authenticate with SourceCraft
completion Generate shell completion scripts
envs Manage Sourcecraft environments
quota Show current user quota

Additional commands

Command Description
browse Open repository in browser
clone Clone a repository
init Initialize SourceCraft Client
issue Manage issues
label Manage labels
milestone Manage milestones
pr Manage prs
reference A comprehensive reference of all src commands
release Manage releases
repo Manage repos
run Manage runs
status Show status of your work across all repos
update Check for updates and show how to update
version Print the version number of src

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
-v, --version Print version and exit

Learn more

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