# Create a snapshotwit snapshot create [name] [description]# List all snapshotswit snapshot list# Restore a snapshotwit snapshot restore <id-or-name># Delete a snapshotwit snapshot delete <id>
# Quick snapshotwit snapshot create# Named snapshotwit snapshot create "before-refactor"# With descriptionwit snapshot create "experiment" "Trying new approach to auth"
Snapshots:before-refactor (lxk4m2n7) Created: 5m ago 142 files Branch: feature/auth Trying new approach to authworking-state (abc123) Created: 2h ago 138 files Branch: main
# Save current statewit snapshot create "safe-point"# Try something riskynpm run dangerous-migration# If it fails, restorewit snapshot restore safe-point
# Snapshot at each step while debuggingwit snapshot create "step-1" "Initial state"# ... make changes ...wit snapshot create "step-2" "Added logging"# ... make changes ...wit snapshot create "step-3" "Found the bug"# Go back to any stepwit snapshot restore step-2