neosync sync
Overview
Learn how to sync data to a local destination with the neosync sync CLI command.
The neosync sync
command is used to sync data from a neosync connection to a local destination.
Supported sources and destinations are currently postgres and mysql.
Usage
neosync sync
Options
The following options can be passed using the neosync sync
command:
--api-key
- Neosync API Key. Takes precedence over$NEOSYNC_API_KEY
--config
- Path to yaml config. Defaults toneosync.yaml
in current directory.--connection-id
- Neosync connection id for sync data source. Takes precedence over config.--destination-connection-url
- Local destination connection url to sync data to. Takes precedence over config.--destination-driver
- Destination connection driver (postgres, mysql). Takes precendence over config.
Yaml Config File
connection-id: d9dc020d-746b-48c1-9319-a165a25ac32e
destination:
connection-url: user:pass@tcp(127.0.0.1:3306)/database
driver: mysql