---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src.md
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# src

Work with SourceCraft from the command line.

## Usage

`src <command> <subcommand> [flags]`

### Agentic code workflow

| Command | Description |
| --- | --- |
| [code](src-code.md) | Launch OpenCode with SourceCraft configuration |
| [codereview](src-codereview.md) | Run a skill codereview in headless mode |
| [do](src-do.md) | Run OpenCode with a prompt in headless mode |
| [ipc](src-ipc.md) | Run the IPC server |
| [prdescription](src-prdescription.md) | Run a skill prdescription in headless mode |
| [skill](src-skill.md) | Run a skill in headless mode |

### Core commands

| Command | Description |
| --- | --- |
| [auth](src-auth.md) | Authenticate with SourceCraft |
| [completion](src-completion.md) | Generate shell completion scripts |
| [envs](src-envs.md) | Manage Sourcecraft environments |
| [quota](src-quota.md) | Show current user quota |

### Additional commands

| Command | Description |
| --- | --- |
| [browse](src-browse.md) | Open repository in browser |
| [clone](src-clone.md) | Clone a repository |
| [init](src-init.md) | Initialize SourceCraft Client |
| [issue](src-issue.md) | Manage issues |
| [label](src-label.md) | Manage labels |
| [milestone](src-milestone.md) | Manage milestones |
| [pr](src-pr.md) | Manage prs |
| [reference](src-reference.md) | A comprehensive reference of all src commands |
| [release](src-release.md) | Manage releases |
| [repo](src-repo.md) | Manage repos |
| [run](src-run.md) | Manage runs |
| [status](src-status.md) | Show status of your work across all repos |
| [update](src-update.md) | Check for updates and show how to update |
| [version](src-version.md) | 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 |
| `-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.
