CLI Reference
contxt push / pull
Sync your local memory to the cloud and back. Entries are stored locally first — sync makes them available across machines and in the web dashboard.
Commands
contxt sync pushUpload all local entries that haven't been synced yet.
contxt sync pullDownload remote entries to your local database.
contxt syncBidirectional sync — pull then push in sequence.
Flags
| Flag | Description |
|---|---|
| --dry-run | Preview what would be synced without making changes |
| --force | Override conflicts and push all local entries regardless of sync state |
Automatic sync
Install git hooks to sync automatically on commit and push:
contxt hook installAfter installation, post-commit silently pushes new entries and pre-push ensures everything is synced before your code reaches the remote.