# Run Depot CI against a specific branch with --ref (https://depot.dev/changelog/2026-03-25-depot-ci-run-ref-flag)

> Published 2026-03-25

The `depot ci run` command now supports a `--ref` flag, allowing you to run CI against a specific branch or ref.

This is especially useful for debugging failing CI on a pull request branch. You can combine `--ref` with `depot ci ssh` to get an interactive terminal session into a CI job running your PR's code:

```bash
depot ci run --ref my-feature-branch
depot ci run --ref refs/pull/123/head
```

Previously, `depot ci run` would always run against the default branch, making it difficult to reproduce and debug PR-specific CI failures.

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.