deploy to apply a full update cycle to a running site — pull the latest code, update images, and restart services. It handles the down/pull/up sequence in the correct order, including any plugin-registered hooks.
Reference
Deploy the active context by orchestrating a full update cycle. The deploy sequence runs:- Plugin pre-down hooks (if the context plugin registers a deploy runner)
- docker compose down
- git fetch and git checkout
<branch>(unless--skip-gitis set) - docker compose pull (unless
--no-pullis set) - docker compose up -d
--remove-orphans - Plugin post-up hooks (if the context plugin registers a deploy runner)
--branch flag overrides which branch is checked out during the git step.
If omitted, the repository’s current branch is updated via fetch without switching.
Examples:
sitectl deploy # Deploy current branch on active context
sitectl deploy --branch main # Switch to main and deploy
sitectl deploy --skip-git # Restart services without pulling git changes
sitectl deploy --context prod # Deploy on a specific context
| Flag | Default | Description |
|---|---|---|
--branch | Git branch to check out during the deploy (default: update current branch) | |
--no-pull | false | Skip docker compose pull before bringing services up |
--skip-git | false | Skip the git fetch/checkout step |
Deploy sequence
- Plugin pre-down hooks (if the context plugin registers a deploy runner)
docker compose downgit fetchandgit checkout <branch>(skipped with--skip-git)docker compose pull(skipped with--no-pull)docker compose up -d --remove-orphans- Plugin post-up hooks

