Bolt ships four commands that connect your day-to-day Git workflow to AI: a GitHub Actions agent you can install with a single command, a shortcut for checking out pull requests, an AI commit-message generator, and an AI code reviewer with machine-readable exit codes. Together they let you bring Bolt into every stage of development — local coding, PR review, and continuous integration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bolt-builder/bolt-cli/llms.txt
Use this file to discover all available pages before exploring further.
bolt github
Manage the GitHub Actions agent that runs Bolt on CI events.
bolt github install
Install the GitHub Actions workflow to the current repository. This writes the workflow YAML to .github/workflows/ so that Bolt starts automatically on issue comments, new pull requests, or other events you configure.
.github/workflows/.
bolt github run
Run the GitHub agent locally or inside a CI step, replaying a specific GitHub event payload.
| Flag | Description |
|---|---|
--event <event> | GitHub event name or path to a JSON event payload |
--token <pat> | GitHub personal access token (github_pat_…) used to post comments and fetch context |
Set up the GitHub Actions agent
Install the workflow
From the root of your repository:Bolt writes a GitHub Actions workflow file to
.github/workflows/. Commit and push the file.Add your API key as a secret
In your repository settings, add the API key for your preferred LLM provider as a repository secret (for example,
ANTHROPIC_API_KEY). The workflow will pick it up automatically.Trigger the agent
Comment
/bolt <your request> on any issue or pull request. The workflow fires, Bolt reads the event payload, and posts a reply with the result.bolt pr <number>
Check out a GitHub pull request into a local branch and launch Bolt in that branch — ready to review, debug, or continue work from where the PR author left off.
gh CLI to fetch the PR, creates a branch named pr/<number>, and wires up the upstream tracking ref. For cross-repository (fork) PRs, it adds the fork as a remote automatically. If the PR description contains a shared Bolt session URL (opncd.ai/s/…), the session is imported so you can continue the author’s conversation.
Requires the GitHub CLI (gh) to be installed and authenticated.
bolt commit
Generate a commit message from your staged (or all tracked) changes and commit in one step.
commit agent along with recent commit subjects for style reference, and runs git commit -m <message> with the result.
Flags
| Flag | Alias | Description |
|---|---|---|
--all | -a | Commit all tracked changes, not just staged ones (equivalent to git commit -a) |
--dry-run | Print the generated message without committing | |
--model <provider/model> | -m | Override the model used to generate the message |
bolt review
Run the code-review agent against a diff and exit with a machine-readable verdict. The final line of the review is always either Verdict: PASS or Verdict: FAIL, making bolt review drop-in-ready for CI pipelines.
bolt review diffs HEAD against the working tree. Use the flags below to scope the diff.
Flags
| Flag | Alias | Description |
|---|---|---|
--staged | Review staged changes only | |
--branch <name> | Review changes since the merge base with the named branch (defaults to the repository’s default branch) | |
--model <provider/model> | -m | Model to use for the review |
Exit codes
| Code | Meaning |
|---|---|
0 | Verdict: PASS — no critical or major issues |
1 | Verdict: FAIL — one or more critical or major issues found |
2 | Verdict could not be determined from the response |