Commands¶
Complete reference for all Campers CLI commands.
run¶
Launch an EC2 instance with file sync and command execution.
Arguments¶
| Argument | Description |
|---|---|
CAMP_NAME |
Name of camp from configuration (optional) |
Options¶
| Option | Description |
|---|---|
-c, --command |
Command to execute |
--instance-type |
Override EC2 instance type |
--disk-size |
Override root volume size (GB) |
--region |
Override AWS region |
--port |
Additional port to forward |
--plain |
Disable TUI, use plain text output |
Examples¶
# Use defaults
campers run
# Use a named camp
campers run jupyter
# Override settings
campers run --instance-type t3.large --disk-size 100
# Execute a specific command
campers run dev -c "python train.py"
# Plain text output (no TUI)
campers run --plain
list¶
Display all Campers-managed instances across regions.
Options¶
| Option | Description |
|---|---|
--region |
Filter by AWS region |
--json |
Output as JSON |
Examples¶
# List all instances
campers list
# Filter by region
campers list --region us-west-2
# JSON output for scripting
campers list --json
Output¶
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Name ┃ Instance ID ┃ State ┃ Region ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ campers-myproj-main│ i-0abc123def │ running │ us-east-1 │
│ campers-myproj-dev │ i-0def456abc │ stopped │ us-east-1 │
└────────────────────┴──────────────┴────────────┴────────────────┘
stop¶
Stop a running instance. The instance and its data are preserved.
Arguments¶
| Argument | Description |
|---|---|
TARGET |
Instance name or ID |
Examples¶
Note
Stopped instances do not incur compute charges, but EBS volumes still incur storage charges.
start¶
Start a previously stopped instance.
Arguments¶
| Argument | Description |
|---|---|
TARGET |
Instance name or ID |
Examples¶
After starting, use campers run to reconnect with file sync:
destroy¶
Terminate an instance and delete associated resources (key pair, security group).
Arguments¶
| Argument | Description |
|---|---|
TARGET |
Instance name or ID |
Options¶
| Option | Description |
|---|---|
--force |
Skip confirmation prompt |
Examples¶
# Destroy by name
campers destroy dev
# Destroy by instance ID
campers destroy i-0abc123def456
# Skip confirmation
campers destroy dev --force
Warning
This permanently deletes the instance and all data on its volumes. This action cannot be undone.
init¶
Generate a starter configuration file.
Options¶
| Option | Description |
|---|---|
--force |
Overwrite existing configuration |
Examples¶
doctor¶
Verify AWS credentials and required IAM permissions.
Checks Performed¶
- AWS credentials are configured
- IAM permissions for EC2 operations
- Mutagen is installed
- Network connectivity to AWS
Example Output¶
Checking AWS credentials... OK
Checking IAM permissions... OK
Checking Mutagen installation... OK
All checks passed!
setup¶
Create required AWS resources (VPC, security groups) for a region.
Options¶
| Option | Description |
|---|---|
--region |
AWS region to set up |
Examples¶
Resources Created¶
- Default VPC (if not exists)
- Security group with SSH access
- Required IAM resources
Global Options¶
These options work with all commands:
| Option | Description |
|---|---|
--help |
Show help message |
--version |
Show version number |
Exit Codes¶
| Code | Description |
|---|---|
0 |
Success |
1 |
General error |
2 |
Configuration error |
130 |
Interrupted (Ctrl+C) |