-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add CLI commands to allow users to manage bucket snapshots from the bm command line tool.
Background
Basic Memory Cloud now supports Tigris bucket snapshots (PR basicmachines-co/basic-memory-cloud#346). Users should be able to manage snapshots via the CLI in addition to the web UI.
CLI Commands
Create snapshot
bm cloud snapshot create "before major refactor"
→ Created snapshot: snap_abc123 (2025-11-25T10:30:00)List snapshots
bm cloud snapshot list
→ snap_abc123 "before major refactor" 2025-11-25 42 MB
→ snap_xyz789 "daily backup" 2025-11-24 41 MBDelete snapshot
bm cloud snapshot delete snap_abc123
→ Deleted snapshot snap_abc123Restore file from snapshot
bm cloud restore notes/project.md --snapshot snap_abc123
→ Restored notes/project.md from snapshot snap_abc123Restore entire folder
bm cloud restore research/ --snapshot snap_abc123
→ Restored 12 files from research/API Endpoints
The cloud service already exposes these endpoints:
POST /api/bucket-snapshots- Create snapshotGET /api/bucket-snapshots- List snapshotsGET /api/bucket-snapshots/{id}- Get snapshot detailsDELETE /api/bucket-snapshots/{id}- Delete snapshotGET /api/bucket-snapshots/{id}/browse?prefix=- Browse snapshot contentsPOST /api/bucket-snapshots/{id}/restore- Restore from snapshot
Implementation Notes
- Commands should be under
bm cloud snapshotsubgroup - Restore command could be
bm cloud restoreorbm cloud snapshot restore - Need to handle authentication (existing cloud auth flow)
- Consider adding
--format jsonoption for scripting
Related
- basicmachines-co/basic-memory-cloud#346 - SPEC-29: Tigris Bucket Versioning
- SPEC-29 in specs project for full details
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request