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 push

Upload all local entries that haven't been synced yet.

contxt sync pull

Download remote entries to your local database.

contxt sync

Bidirectional sync — pull then push in sequence.

Flags

FlagDescription
--dry-runPreview what would be synced without making changes
--forceOverride conflicts and push all local entries regardless of sync state

Automatic sync

Install git hooks to sync automatically on commit and push:

contxt hook install

After installation, post-commit silently pushes new entries and pre-push ensures everything is synced before your code reaches the remote.