The sync
Command
Synchronize all remote collections with the local collections.
msh sync [collection-name]
Arguments
collection-name
: The collection name to synchronize. If not provided, all collections will be synchronized (optional).
Flags
-up, -u
: Synchronize up as well as down.-detached, -d
: Run the sync in detached mode (asynchronous).
Example
shell
$ msh sync my-collection -up
Pushing changes to the remote repository...
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
Everything up-to-date
Synchronizing collection 'my-collection'...
Already up to date.
Collection 'my-collection' synchronized