cu command is an alias for container-use and can be used interchangeably.
Global Options
These options can be used with any command:--help,-h- Show help for a command--version- Show version information--debug- Enable debug output
Commands
container-use list
List all environments and their status.
--no-trunc- Don’t truncate output--quiet,-q- Only show environment IDs
container-use log
View the commit history and commands executed in an environment.
--patch,-p- Show patch output with diffs
container-use diff
Show the code changes made in an environment compared to its base branch.
container-use checkout
Check out an environment’s branch locally to explore in your IDE.
--branch,-b- Specify branch name to checkout
container-use terminal
Open an interactive terminal session inside the environment’s container.
container-use merge
Merge an environment’s work into your current branch, preserving commit history.
--delete,-d- Delete environment after successful merge
container-use apply
Apply an environment’s changes as staged modifications without commits.
--delete,-d- Delete environment after successful apply
container-use delete
Delete an environment and clean up its resources.
--all- Delete all environments
container-use watch
Monitor environment activity in real-time as agents work.
container-use config
Manage default environment configurations.
show [environment-id]- Display current configurationimport {environment-id}- Import configuration from an environment
base-image set {image}- Set default base imagebase-image get- Show current base imagebase-image reset- Reset to default base image
setup-command add {command}- Add setup commandsetup-command remove {command}- Remove setup commandsetup-command list- List setup commandssetup-command clear- Clear all setup commands
install-command add {command}- Add install commandinstall-command remove {command}- Remove install commandinstall-command list- List install commandsinstall-command clear- Clear all install commands
env set {key} {value}- Set environment variableenv unset {key}- Unset environment variableenv list- List environment variablesenv clear- Clear all environment variables
secret set {key} {value}- Set secretsecret unset {key}- Unset secretsecret list- List secretssecret clear- Clear all secrets
agent [agent]- Configure MCP server for specific agent (claude, goose, cursor, etc.)
container-use version
Display Container Use version information.
container-use stdio
Start Container Use as an MCP (Model Context Protocol) server for agent integration.
container-use completion
Generate shell completion scripts.
Environment IDs
Environment IDs are randomly generated two-word identifiers likefancy-mallard or clever-dolphin. You can use:
- Full ID:
fancy-mallard - Partial ID:
fancy(if unique) - Branch name:
cu-fancy-mallard
Exit Codes
0- Success1- General error2- Command syntax error3- Environment not found4- Operation cancelled