← Back to Home

Advanced Usage

Command reference and configuration options for power users.

Commands

reMarkableSync sync

The default workflow — backs up your tablet and converts any updated notebooks to PDF.

reMarkableSync sync                    # USB connection
reMarkableSync sync --wifi             # Wi-Fi connection
reMarkableSync sync --force-backup     # Re-download all files
reMarkableSync sync --force-convert    # Re-convert all notebooks
OptionDescription
--wifiUse Wi-Fi instead of USB
--wifi-host HOSTSpecify Wi-Fi IP/hostname (default: auto-discover)
--force-backupForce full backup, ignoring incremental state
--force-convertRe-convert all notebooks to PDF
--skip-templatesSkip backing up template files
--log-level LEVELSet verbosity: DBG, INF, WRN, ERR

reMarkableSync watch

Runs sync automatically on a schedule with a system tray icon for status and control.

reMarkableSync watch                   # Default interval from config
reMarkableSync watch --interval 300    # Sync every 5 minutes

The system tray menu lets you:

reMarkableSync backup

Only download files from the tablet — no conversion.

reMarkableSync backup
reMarkableSync backup --wifi --force-backup

reMarkableSync convert

Only convert already-backed-up notebooks to PDF — no tablet connection needed.

reMarkableSync convert
reMarkableSync convert --force-convert

Full Pipeline

The pipeline command runs the complete flow: backup → PDF → AI OCR → Markdown export.

reMarkableSync pipeline \
  --output-dir ~/Documents/Notes \
  --ai-provider github
OptionDescription
--output-dir DIRRoot directory for Markdown output
--ai-providergithub (GitHub Copilot) or claude
--ai-model MODELOverride the default AI model
--skip-backupSkip the backup stage
--skip-convertSkip PDF conversion
--force-exportRe-export all notes even if unchanged
--notebook-filter PATTERNOnly process matching notebooks
--no-ai-ocrExport without AI transcription
--tags TAGSComma-separated tags for frontmatter

Logging & Debugging

All commands accept --log-level DBG for detailed output. A log file is also written to your backup directory's parent folder at remarkablesync.log.

reMarkableSync sync --log-level DBG

See How to get DEBUG logs for full details on log file locations.

Configuration

Settings are stored in <AppData>/remarkablesync/config.json. You can edit this file directly or re-run reMarkableSync config at any time.

Sensitive values (SSH password, AI API keys) are stored in your system keyring — never in the config file.

Custom OCR Instructions

You can customize how the AI transcribes your handwriting by providing a Markdown file with additional instructions. This is useful for:

Setup

Create a file at the default location:

# macOS/Linux
~/.config/remarkablesync/custom_instructions.md

# Windows
%APPDATA%\remarkablesync\custom_instructions.md

Or specify a custom path during reMarkableSync config when prompted for "Custom OCR instructions file".

Example

# Custom OCR Instructions

- I use "K8s" as shorthand for Kubernetes
- Convert "→" arrows to "->" in code contexts
- My handwritten "l" and "1" look similar - prefer letters in words
- Format any code snippets with proper markdown fencing

Pre/Post Sync Commands

You can run custom shell commands before and after each sync cycle. This is useful for:

Setup

Add these fields to your config.json:

{
  "pre_sync_command": "echo 'Starting sync...'",
  "post_sync_command": "cd ~/Notes && git add -A && git commit -m 'Auto-sync'"
}
FieldWhen it runs
pre_sync_commandBefore backup starts
post_sync_commandAfter all sync actions complete (backup, PDF, OCR)

Commands run in a shell (sh -c on macOS/Linux, cmd /c on Windows). If a pre-sync command fails, the sync continues. Post-sync command failures are logged but don't affect the sync result.