Commands for synchronizing between two Revisium projects.
- Content Migration - Move content between environments (staging → production)
- Schema Replication - Keep schemas in sync across instances
- Backup/Restore - Replicate data to backup instances
- Multi-tenant Sync - Synchronize content across tenant projects
Synchronize schema migrations from source to target.
revisium sync schema --source <url> --target <url> [options]| Option | Description | Default |
|---|---|---|
-s, --source <url> |
Source project URL | Required |
-t, --target <url> |
Target project URL | Required |
-c, --commit |
Create revision after sync | false |
--dry-run |
Preview without applying | false |
# Sync schema
revisium sync schema \
--source revisium://cloud.revisium.io/org/proj/master:head?token=xxx \
--target revisium://localhost:8080/org/proj?token=yyy
# Dry run
revisium sync schema \
--source revisium://cloud.revisium.io/org/proj \
--target revisium://localhost:8080/org/proj \
--dry-run
# Sync and commit
revisium sync schema \
--source revisium://source.example.com/org/proj \
--target revisium://target.example.com/org/proj \
--commit- Connects to source and target projects
- Fetches migrations from source revision
- Applies migrations to target draft revision
- Optionally commits changes
Synchronize table rows from source to target.
revisium sync data --source <url> --target <url> [options]| Option | Description | Default |
|---|---|---|
-s, --source <url> |
Source project URL | Required |
-t, --target <url> |
Target project URL | Required |
--tables <list> |
Comma-separated tables | All tables |
--batch-size <n> |
Rows per batch | 100 |
-c, --commit |
Create revision after sync | false |
--dry-run |
Preview without applying | false |
# Sync all tables
revisium sync data \
--source revisium://cloud.revisium.io/org/proj:head?token=xxx \
--target revisium://localhost:8080/org/proj?token=yyy
# Sync specific tables
revisium sync data \
--source revisium://cloud.revisium.io/org/proj \
--target revisium://localhost:8080/org/proj \
--tables Article,Category,Tag
# Sync with larger batches
revisium sync data \
--source revisium://source.example.com/org/proj \
--target revisium://target.example.com/org/proj \
--batch-size 500 \
--commit- Connects to source and target projects
- Fetches rows from source revision
- Compares with target draft rows (using hash)
- Creates missing rows, updates changed, skips identical
- Uses bulk operations with fallback
- Optionally commits changes
Full synchronization: schema first, then data.
revisium sync all --source <url> --target <url> [options]| Option | Description | Default |
|---|---|---|
-s, --source <url> |
Source project URL | Required |
-t, --target <url> |
Target project URL | Required |
--tables <list> |
Comma-separated tables | All tables |
--batch-size <n> |
Rows per batch | 100 |
-c, --commit |
Create revision after sync | false |
-d, --dry-run |
Preview without applying | false |
# Full sync from cloud to local
revisium sync all \
--source revisium://cloud.revisium.io/org/proj/master:head?token=xxx \
--target revisium://localhost:8080/org/proj?token=yyy \
--commit
# Full sync with specific tables
revisium sync all \
--source revisium://source.example.com/org/proj \
--target revisium://target.example.com/org/proj \
--tables Article,Category \
--commitSync commands support separate authentication for source and target.
| Variable | Description |
|---|---|
REVISIUM_SOURCE_URL |
Source project URL |
REVISIUM_SOURCE_TOKEN |
Source JWT token |
REVISIUM_SOURCE_API_KEY |
Source API key |
REVISIUM_SOURCE_USERNAME |
Source username |
REVISIUM_SOURCE_PASSWORD |
Source password |
REVISIUM_TARGET_URL |
Target project URL |
REVISIUM_TARGET_TOKEN |
Target JWT token |
REVISIUM_TARGET_API_KEY |
Target API key |
REVISIUM_TARGET_USERNAME |
Target username |
REVISIUM_TARGET_PASSWORD |
Target password |
# Using tokens
export REVISIUM_SOURCE_TOKEN=<YOUR_SOURCE_TOKEN>
export REVISIUM_TARGET_TOKEN=<YOUR_TARGET_TOKEN>
revisium sync all \
--source revisium://cloud.revisium.io/org/proj/master:head \
--target revisium://localhost:8080/org/proj/master \
--commit# Using username/password
export REVISIUM_SOURCE_USERNAME=admin
export REVISIUM_SOURCE_PASSWORD=source_secret
export REVISIUM_TARGET_USERNAME=admin
export REVISIUM_TARGET_PASSWORD=target_secret
revisium sync all \
--source revisium://source.example.com/org/proj/master:head \
--target revisium://target.example.com/org/proj/master \
--commitexport REVISIUM_SOURCE_TOKEN=<YOUR_SOURCE_TOKEN>
export REVISIUM_TARGET_TOKEN=<YOUR_TARGET_TOKEN>
revisium sync all \
--source revisium://cloud.revisium.io/sandbox/demo/master:head \
--target revisium://localhost:8080/admin/local/master \
--commitexport REVISIUM_SOURCE_TOKEN=$STAGING_TOKEN
export REVISIUM_TARGET_TOKEN=$PRODUCTION_TOKEN
revisium sync all \
--source revisium://staging.example.com/org/proj/master:head \
--target revisium://prod.example.com/org/proj/master \
--commitrevisium sync schema \
--source revisium://cloud.revisium.io/org/proj \
--target revisium://localhost:8080/org/proj \
--dry-run- URL Format - URL syntax
- Authentication - Auth methods