Command-line interface for managing ZeroDB Local environment and syncing with ZeroDB Cloud.
Looking for the full ZeroDB Local runtime? See zerodb-local — the standalone Python package with lite mode (SQLite + FAISS, no Docker) and full mode (PostgreSQL + Qdrant + MinIO).
pip install zerodb-cliOr install the full runtime (includes the CLI):
pip install zerodb-local
zerodb servezerodb local upzerodb cloud login --email [email protected]zerodb cloud link <project-id># Generate sync plan
zerodb sync plan
# Apply sync (with confirmation)
zerodb sync apply
# Push to cloud (shorthand)
zerodb sync push
# Pull from cloud (shorthand)
zerodb sync pull-
zerodb sync plan- Generate and display sync plan--schema- Show schema diff only--data- Show data diff only--vectors- Show vector diff only--json- Output as JSON
-
zerodb sync apply- Execute sync plan--yes- Skip confirmation--dry-run- Preview without executing--strategy- Conflict resolution strategy (local-wins, cloud-wins, newest-wins, manual)
-
zerodb sync push- Push local changes to cloud--yes- Skip confirmation--force- Force push, overwriting cloud data
-
zerodb sync pull- Pull cloud changes to local--yes- Skip confirmation
zerodb local init- Initialize local environment (create data directories)zerodb local up- Start all services (docker-compose up -d)--logs- Show logs instead of detaching
zerodb local down- Stop all services--volumes- Also remove volumes
zerodb local status- Show service status and healthzerodb local logs [service]- View service logs--no-follow- Don't follow logs
zerodb local restart [--service NAME]- Restart serviceszerodb local reset- Reset environment (removes all data)--yes- Skip confirmation prompt
zerodb cloud login- Login to ZeroDB Cloudzerodb cloud logout- Logout from ZeroDB Cloudzerodb cloud whoami- Show current userzerodb cloud link <project-id>- Link to cloud projectzerodb cloud unlink- Unlink current project
zerodb env list- List all environmentszerodb env switch <env>- Switch environmentzerodb env current- Show current environment
zerodb inspect schema- Show local schema treezerodb inspect vectors- Vector namespace summaryzerodb inspect events- Event lag and offsetszerodb inspect sync-state- Last sync time and status
When conflicts are detected during sync, you can choose how to resolve them:
- local-wins - Always use local version
- cloud-wins - Always use cloud version
- newest-wins - Use the version with the latest timestamp
- manual - Interactively choose for each conflict
Configuration is stored in ~/.zerodb/:
config.json- CLI configurationcredentials.json- Cloud credentials (JWT tokens)
- zerodb-local — full standalone runtime (lite + full modes, Tauri desktop)
- ZeroDB Cloud — managed cloud service
- Documentation
- Email: [email protected]
- Website: https://www.ainative.studio
MIT License - Copyright (c) 2025 AINative Studio