*** title: CLI Reference description: >- Complete reference for the NVIDIA Brev CLI. Search for GPUs, create instances, connect, and automate workflows from your terminal. --------------------------------------------------- The Brev CLI provides full control over your GPU and CPU instances from the command line. Search for hardware, create instances, connect via shell or editor, and chain commands together with composable pipes. **SSH is fully managed**: The CLI automatically handles SSH keys, config files, and IP addresses. Just run `ssh my-instance` or `brev shell my-instance` to connect. There is no manual configuration needed. ## First Time? Follow the [installation instructions](/cli/getting-started#installation) for your platform. Run `brev login` to authenticate. This sets up your SSH keys automatically. Run `brev start https://github.com/user/repo.git` to create an instance, or `brev refresh` to sync instances from the web console. Run `brev shell my-instance` or `ssh my-instance` to connect. ## Quick Start ```bash # Get help on any command brev --help brev --help # Check CLI version brev --version ``` ## Command Reference Commands organized by what you want to do: ### Getting Started | Command | Description | | --------- | ------------------------------------ | | `login` | Authenticate with your Brev account. | | `logout` | Remove stored credentials. | | `ssh-key` | Display your SSH public key. | ### Search & Create | Command | Description | | -------- | --------------------------------------------------------- | | `search` | Search GPU and CPU instance types with filters. | | `create` | Create instances with smart defaults and fallback chains. | ### Managing Instances | Command | Description | | --------- | ------------------------------------------------------ | | `ls` | List instances in current organization (alias: `list`) | | `start` | Start stopped instances. | | `stop` | Stop running instances (supports `--all`) | | `delete` | Delete an instance permanently | | `refresh` | Sync instances from web console | ### Connecting | Command | Description | | -------------- | ------------------------------------------------------- | | `shell` | Open interactive SSH shell | | `exec` | Run commands on instances non-interactively | | `copy` | Copy files to/from instances (aliases: `cp`, `scp`) | | `open` | Open instance in VS Code, Cursor, Windsurf, or terminal | | `port-forward` | Forward remote ports to localhost | ### Organizations | Command | Description | | -------- | --------------------------- | | `org ls` | List your organizations. | | `set` | Switch active organization. | | `invite` | Generate an invite link. | ### Agent Integration | Command | Description | | ------------- | ------------------------------------------------------ | | `agent-skill` | Install/uninstall the Brev skill for AI coding agents. | ## Detailed Documentation Installation, authentication, and basic configuration. Create instances with smart defaults, fallback chains, and startup scripts. List, start, stop, delete, reset, and refresh commands. Shell, exec, copy, editor access, and port forwarding. Find GPU and CPU instance types with powerful filtering and sorting. Chain commands with pipes for powerful automation. Additional commands: org, reset, create, secret, invite, copy, status.