Loading...
Loading...
Manage LocalStack state and snapshots. Use when users want to save, load, export, or import LocalStack state, work with Cloud Pods, create local snapshots, or enable persistence across restarts.
npx skill4agent add localstack/skills localstack-state# Export current state to a local file
localstack state export my-state.zip
# Export to a specific path
localstack state export /path/to/backup/state.zip# Import state from a local file
localstack state import my-state.zip
# Import from a specific path
localstack state import /path/to/backup/state.zipexport LOCALSTACK_AUTH_TOKEN=<your-token># Save current state to a Cloud Pod
localstack pod save my-pod-name
# Save with a message
localstack pod save my-pod-name --message "Initial setup with S3 and DynamoDB"# Load state from a Cloud Pod
localstack pod load my-pod-name
# Load and merge with existing state
localstack pod load my-pod-name --merge# List all available Cloud Pods
localstack pod list# Delete a Cloud Pod
localstack pod delete my-pod-name# View Cloud Pod details
localstack pod inspect my-pod-name# Enable local persistence
PERSISTENCE=1 localstack start -d
# State is saved to .localstack/ directory
# Survives container restarts| Feature | Local Snapshots (export/import) | Cloud Pods (save/load) |
|---|---|---|
| Storage | Local files | LocalStack cloud |
| Pro required | No | Yes |
| Team sharing | Manual file sharing | Built-in |
| Version control | Can commit files | Cloud-managed |
| Offline use | Yes | No |
state export/importPERSISTENCE=1