Instance Management
Commands for managing the lifecycle of your GPU instances.
brev list
List workspaces and organizations.
brev start
Start a stopped instance, or create a new one from a Git URL or local path.
brev start vs brev create: These commands are equivalent. Use brev start as it is the preferred command.
Start a Stopped Instance
Create from Git URL
Create with GPU
GPU Type Format
The --gpu flag uses the format machine-type:gpu-type:count:
Refer to GPU Instances for available GPU types and pricing.
Create Empty Instance
Flags
Using Setup Scripts
Setup scripts run automatically after your instance starts. Use them to install dependencies or configure your environment.
Setup scripts run as the default user. Use sudo for system-level installations.
brev stop
Pause an instance. Data in /home/ubuntu/workspace persists between stops.
Flags
brev delete
Permanently remove an instance and all its data.
Deleting an instance is irreversible. All data is permanently lost.
brev refresh
Sync instances and update your local SSH configuration. The CLI manages SSH config automatically, but run this command to force an immediate sync.
What refresh does:
- Downloads instances created in the web console
- Updates
~/.brev/ssh_configwith current instance IPs - Ensures
~/.brev/brev.pemhas correct permissions
After refresh, connect by name: Run ssh my-instance or brev shell my-instance. You never need to look up IP addresses.
When to refresh: After creating instances in the web console, after restarting a stopped instance (IP may change), or when SSH connections fail.
brev set
Change the active organization context. All subsequent commands will operate within this org.
To switch organizations, you must be logged in. Use brev login first if needed.