The init-site dance in CrafterCMS: branch, user, password, site name, repo URL. Miss one, start over. Here’s the cheat sheet.

1
2
3
4
5
6
gosu crafter ./bin/init-site.sh \
  -b branch-name \
  -u git-user \
  -p git-token \
  unique-deployment-name \
  https://git-repo-url

Parameters:

  • -b : Git branch name to deploy
  • -u : Git username for authentication
  • -p : Git token/password for authentication
  • unique-deployment-name : Site identifier for the deployment
  • https://git-repo-url : Full Git repository URL

Example:

1
2
3
4
5
6
gosu crafter ./bin/init-site.sh \
  -b main \
  -u deploybot \
  -p ghp_abc123xyz \
  mysite-prod \
  https://github.com/org/mysite.git

Notes:

  • Run from CrafterCMS delivery container/pod
  • Creates deployer target and syncs from Git
  • Site name must be unique per environment