#
Operating
Read state:
cofactor deploy status --application <name> --stage <stage>
Normal flow: a plan is created per commit; with policy approval it waits for:
cofactor deploy approve <planId>
Pause and unpause an environment (hold stops new plans; a running step finishes):
cofactor deploy hold --application <name> --stage <stage> --reason "<why>" cofactor deploy resume --application <name> --stage <stage>
Overrides (org admin, --reason required, all recorded):
to <sha>: roll the whole environment back or forward to a commit on the default branch. The planner still orders it. The environment is then pinned there until you resume. Use this for a rollback.target <id> --to <sha> [--force]: break-glass, move one target only. Refused if it would break a contract and lists the violations;--forceaccepts them and records them. Use only when the normal path cannot work.cancel <planId>: stop a plan. A running plan finishes its current step first.retry <stepId>: retry the failed step of a failed plan once the cause is fixed.skip <stepId>: you fixed the step by hand. Cofactor checks what is actually live and records whether it matched.