rn session sync
Push all local sessions to rockstar.ninja. Discovers sessions and pushes any that are new or have changed since the last push.
rn session sync
Alias: rn s sync
Behavior
- Discovers local sessions from the current project directory (or all projects with
--all) - Fetches your remote session list to identify what's already pushed
- Skips sessions that are already synced and unchanged
- Pushes new and locally-changed sessions sequentially
- Prints a summary when complete
Sessions are considered "changed" when the local file's modification time is newer than the remote version's last update.
Flags
| Flag | Short | Type | Description |
|---|---|---|---|
--all |
-a |
bool | Sync sessions from all projects |
--dry-run |
bool | Show what would be synced without pushing | |
--expires |
string | Expiry duration (e.g., 24h, 7d) |
|
--public |
bool | Make sessions publicly visible | |
--secret |
bool | Make sessions secret (unlisted) | |
--private |
bool | Make sessions private (only you can view) | |
--redact |
-R |
string | Literal string to redact (repeatable) |
Privacy and expiration
Same defaults as rn session push — flags override config, config overrides the global default of secret. See Session Push for details.
Redaction
Client-side redaction rules from your config are applied to every session before upload. Ad-hoc patterns can be added with --redact / -R. See Session Push for details.
Rate limiting
If the server rate-limits a push, the CLI retries automatically with exponential backoff (up to 3 retries).
Examples
Preview what would be synced:
rn session sync --dry-run
Sync all sessions across all projects:
rn session sync --all
Sync with public privacy and 30-day expiry:
rn session sync --public --expires 30d