-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee0ff9b
commit 4d2465b
Showing
4 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: sync | ||
id: sync | ||
hide_title: true | ||
slug: /cli/sync | ||
--- | ||
|
||
import { DocPageHeader } from '@site/src/CustomComponents/DocPageHeader.tsx'; | ||
|
||
<DocPageHeader title="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 | ||
|
||
```bash | ||
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 to `neosync.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 | ||
|
||
```yaml | ||
connection-id: d9dc020d-746b-48c1-9319-a165a25ac32e | ||
destination: | ||
connection-url: user:pass@tcp(127.0.0.1:3306)/database | ||
driver: mysql | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters