Sync
Intelligently sync files to your store with two methods of change detection: Git-based (fastest) and hash-based (most accurate). Only uploads files that have changed since the last sync, making it efficient for large document collections and perfect for CI/CD workflows.
Command
Options
--strategy <strategy>- Processing strategy:fastorhigh_quality(default:fast)--contextualization- Enable context preservation for better search results (default:false)--from-git <ref>- Git reference for change detection (e.g.,HEAD~1,main)--dry-run- Preview changes without syncing--yes,-y- Skip confirmation prompt--force,-f- Force upload regardless of whether content has changed or not--metadata <json>- JSON metadata to attach to synced files--parallel <n>- Number of concurrent operations (default:100, range:1-200)
Change Detection
The sync command provides two methods of change detection:
- Git-based (fast): Uses
git diffto detect changes since a specific commit - Hash-based (accurate): Compares file hashes with stored metadata
Examples
Last updated: November 27, 2025