• Document Up to Date
  • Since 4.0.0

sync-to


Sync the content of a site to a remote repository


Note

The connection to CrafterCMS needs to be setup via the add-environment command before using the command listed here.

Usage

crafter-cli sync-to [-f] [-b=<remoteBranch>] [--config=path]
                    -e=<environment> [-n=<remoteName>] [-p=<profile>]
                    -s=<siteId>

Options

-b, --branch=<remoteBranch>
                          The name of the remote branch
    --config=path         The folder to store configurations
-e, --environment=<environment>
                         The name of the environment
-f, --force               Forces the update of the remote repository
-n, --name=<remoteName>   The name of the remote
-p, --profile=<profile>   The name of the profile (a label to group related configurations)
-s, --siteId=<siteId>     The id of the site

Example

  ./crafter-cli sync-to -e local -s mysite -n origin -b master
OK