Usage
This guide covers all the ways to use BearFlare, from basic commands to advanced sync workflows.
Basic Usage
The simplest way to run BearFlare:
./bearflare.sh
This performs a full sync (both schema and data) with default settings.
Command-Line Flags
| Flag | Description |
|---|---|
-v, --verbose | Print SQL before sending |
-d, --dry-run | Show what would be executed without API calls |
--drop | Drop existing tables before creating schema |
-so, --schema-only | Sync schema only (skip data) |
-do, --data-only | Sync data only (skip schema) |
-i, --incremental | Sync only notes modified since last sync |
-n, --note-id <id> | Sync a single note by identifier |
--force-overwrite | Delete existing rows before inserting |
-h, --help | Display help text |
Example Commands
Full Sync
# Sync everything (schema and data)
./bearflare.sh --drop
Schema Only
# Sync only the table structure
./bearflare.sh --schema-only
Data Only
# Sync only note data
./bearflare.sh --data-only
Incremental Sync
# Sync only modified notes
./bearflare.sh --incremental
Single Note
# Sync one specific note
./bearflare.sh --note-id "ABC123-DEF456-GHI789"
Next Steps
- Learn how to troubleshoot issues in the Troubleshooting guide
- Review the Configuration guide for advanced setup options