Sync Commands
Commands for syncing with the Kernle cloud backend and managing authentication.sync
Synchronize memory with the remote backend.sync status
Check sync status, pending operations, and connection.sync push
Push pending local changes to remote.| Option | Description |
|---|---|
-l, --limit L | Maximum operations to push (default: all) |
sync pull
Pull remote changes to local.| Option | Description |
|---|---|
-f, --full | Pull all records (not just since last sync) |
sync full
Full bidirectional sync (pull then push).auth
Authentication and credentials management.auth register
Register for cloud sync with email.- Send a verification email
- Create your account on the backend
- Store credentials locally in
~/.kernle/credentials.json
auth login
Log in with an API key.auth status
Check authentication status.auth logout
Log out and clear credentials.auth keys
Manage API keys.List Keys
Create Key
Revoke Key
| Option | Description |
|---|---|
--force | Skip confirmation prompt |
Cycle Key
Generate a new key and deactivate the old one.Auto-Sync Configuration
Kernle can automatically sync duringload and checkpoint save operations.
Enable Auto-Sync
Auto-sync is enabled by default when credentials are configured. Control it with flags:Sync Architecture
Local-First with Sync Queue
- All changes written to local SQLite first
- Changes queued in
sync_queuetable - Queue deduplicates by
(table, record_id) - Push to cloud when online
- Pull remote changes on
load()if auto_sync enabled
local_updated_at