# Command line reference Every Brig verb and flag, the environment variables, the JSON output and the exit codes, checked against the code that implements them. See [quickstart.md](quickstart.md) for the walkthrough of a first run. Read this page when you already know what you want and need the exact syntax. Every old spelling still works for one more release. This page teaches only the current one. [migration.md](migration.md) has the full old-to-new table and the deprecation window. ## Everyday commands The eight commands you type most, before the exhaustive reference below. | Command | What it does | | --- | --- | | `brig run claude ~/code/demo` | starts the sandbox and runs the agent against that project | | `brig run claude` | reruns the agent, remounting the project this session used last | | `brig run claude@refactor ~/code/demo` | starts a second, independent session of the same agent | | `brig sh claude` | opens a login shell inside the sandbox | | `brig ls` | lists every sandbox, with its ref, state and guest home | | `brig info claude` | prints the execution envelope, without booting anything | | `brig stop claude` | stops the sandbox and keeps its state on disk | | `brig rm claude` | stops the sandbox and removes it | ## Verbs ### `brig run` ```bash brig run claude ~/code/demo ``` Starts the sandbox if it is not already running, then runs the agent inside it. ``` brig run [project] [args...] ``` - `` names the agent, and, with `@