Authentication
bm cloud login
Authenticate with Basic Memory Cloud using OAuth.Examples
Output
Subscription Required
If you don’t have an active subscription:bm cloud logout
Remove stored OAuth tokens.Examples
Output
bm cloud status
Check cloud authentication state and cloud instance health.Examples
Output
Cloud Setup
bm cloud setup
Set up cloud sync by installing rclone and configuring credentials.- Installs rclone (if not present)
- Gets tenant information from cloud
- Generates secure sync credentials
- Configures rclone remote
Examples
Output
API Key Management
bm cloud api-key save
Save an existing API key to local config.Arguments
API_KEY- API key withbmc_prefix for cloud access
Examples
Output
bm cloud api-key create
Create a new API key via the cloud API and save it locally.bm cloud login first).
Arguments
NAME- Human-readable name for the API key
Examples
Output
Snapshot Management
bm cloud snapshot create
Create a new bucket snapshot.Arguments
DESCRIPTION- Description for the snapshot
Examples
Output
bm cloud snapshot list
List all bucket snapshots.Options
--limit, -l INTEGER- Maximum number of snapshots to display (default: 10)
Examples
Output
bm cloud snapshot show
Show details of a specific snapshot.Arguments
SNAPSHOT_ID- The ID of the snapshot to show
Examples
Output
bm cloud snapshot delete
Delete a bucket snapshot.Arguments
SNAPSHOT_ID- The ID of the snapshot to delete
Options
--force, -f- Skip confirmation prompt
Examples
Output
bm cloud snapshot browse
Browse contents of a snapshot.Arguments
SNAPSHOT_ID- The ID of the snapshot to browse
Options
--prefix, -p TEXT- Filter files by path prefix (e.g., ‘notes/‘)
Examples
Output
Restore from Snapshot
bm cloud restore
Restore files from a snapshot.Arguments
PATH- Local path to restore files to
Options
--snapshot TEXT- Snapshot ID to restore from (required)--prefix TEXT- Only restore files matching prefix--dry-run- Preview what would be restored
Examples
Project Synchronization
bm project bisync
Bidirectional sync between local and cloud.Options
--name TEXT- Project name to sync (required)--resync- Force resynchronization (required for first sync)--dry-run- Preview changes without syncing--force- Force sync even if there are conflicts
Examples
Output
Promo Messages
bm cloud promo
Enable or disable CLI cloud promo messages.Options
--on/--off- Enable or disable CLI promos (default: on)
Examples
Output
Authentication Methods
Basic Memory Cloud supports two authentication methods:OAuth (Recommended)
Best for interactive CLI use:- Opens browser for secure authentication
- Tokens refresh automatically
- Validates subscription status
API Keys
Best for automation and scripts:- Long-lived credentials
- No browser interaction needed
- Per-project cloud routing
Cloud Workflows
Initial Cloud Setup
Regular Sync
Backup and Restore
Error Handling
Common cloud command errors:Subscription Required
bm cloud login.
Authentication Failed
bm cloud login or bm cloud api-key save <key>.
Sync Conflicts
--force or --resync.