Commandline interface to CrafterCMS. Learn more at http://docs.craftercms.org.
The first command needed to work with this tool is add-environment
, you need to provide a name, the url for a
CrafterCMS authoring server and the authentication information:
crafter-cli add-environment -e local -u http://localhost:8080 --username john --password
Once the environment has been added, you can create projects and sync a remote repository:
crafter-cli create-site -e local -s editorial --blueprint org.craftercms.blueprint.editorial
crafter-cli add-remote -e local -s editorial -n origin -u http://github.com/john.doe/editorial.git
crafter-cli sync-to -e local -s editorial -n origin -b site-updates
It is also possible to create a project from a remote repository and later sync it:
crafter-cli create-site -e local -s my-site -n My Site \
-r --clone -u http://github.com/john/doe/my-site.git -b development \
--username john --key /home/john/private_key
crafter-cli sync-from -e local -s editorial -n origin
For a detailed list of commands & arguments run crafter-cli help
https://github.com/craftercms/craftercms/blob/develop/CONTRIBUTORS.md
https://github.com/craftercms/craftercms/blob/develop/CODE_OF_CONDUCT.md
https://github.com/craftercms/craftercms/blob/develop/CONTRIBUTING.md
https://github.com/craftercms/craftercms/blob/develop/GIT_WORKFLOW.md