Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit 64345b9

Browse files
committed
Add vm-teardown.sh script
1 parent 75489bb commit 64345b9

3 files changed

Lines changed: 438 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This is a complete remote AI-assisted development environment setup running Clau
1010

1111
### VM Management
1212
- `./scripts/vm-setup.sh` - Deploy new VM with persistent volume
13+
- `./scripts/vm-teardown.sh` - Safely remove VM, volumes, and resources
1314
- `./scripts/vm-suspend.sh` - Suspend VM to save costs
1415
- `./scripts/vm-resume.sh` - Resume suspended VM
1516
- `flyctl status` - Check VM status and health

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Before starting, you'll need:
5050
├── fly.toml # Fly.io configuration with auto-scaling
5151
├── scripts/ # Automation scripts
5252
│ ├── vm-setup.sh # Initial VM deployment
53+
│ ├── vm-teardown.sh # Clean VM and resource removal
5354
│ ├── vm-configure.sh # Environment configuration
5455
│ ├── vm-suspend.sh # Cost-saving VM suspension
5556
│ ├── vm-resume.sh # VM resumption
@@ -317,6 +318,10 @@ flyctl logs -a my-claude-dev # View logs
317318
./scripts/volume-backup.sh # Backup data
318319
./scripts/volume-restore.sh # Restore data
319320

321+
# Teardown
322+
./scripts/vm-teardown.sh --app-name my-claude-dev # Remove VM and volumes
323+
./scripts/vm-teardown.sh --app-name my-claude-dev --backup # Backup then remove
324+
320325
# Development
321326
ssh developer@my-claude-dev.fly.dev -p 10022 # Connect via SSH
322327
claude # Start Claude Code

0 commit comments

Comments
 (0)