Search the documentation
2 pages for --ref.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
CLI reference
Claude Code CLI · in the page
cli-reference
…utput-format stream-json --verbose "query"` | | `--ref <branch>` | With `--environment`, base the new session's checkout on a named ref instead of l…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…t be set by accident. ## Run the test loop The `--environment` and `--ref` dispatch flags require Claude Code v2.1.224 or later on the machine that runs the script, the same floor as the runner itse…