arm64 or x64).
Install the CLI
Deploy Checkfu to "live"?. When it finishes, it prints your addresses:
Update
Runcheckfu deploy --stage <name> to update that stage. It reuses the saved stage, account, and API key, and stops with Update refused if the plan would delete or replace resources. Run npm install -g checkfu@latest when updating the CLI itself.
Use --release v1.2.3 to select a specific release. When updating an existing stage, the CLI requires the release manifest to allow the last applied source revision. Use checkfu deploy --edge --stage staging to try current origin/main on a separate development stage. Use the source journal to inspect the last applied revision. If it lists a pending candidate, run checkfu deploy --stage <name> from the same configuration directory to finish that apply before starting another. If the apply finished but readiness failed, the retry checks the same revision before selecting a new release.
A release can declare a verified code rollback to an earlier revision. Run checkfu deploy --stage <name> --release <previous-tag> --rollback to use that path if the target was previously verified on the same stage. The plan still checks for resource replacements and deletions. Rollback uses the current stored data.
Stages
live.
checkfu deploy remembers the last stage you deployed in deploy/active.json. After checkfu deploy --stage staging, a later checkfu deploy without --stage updates staging, not live. Pass --stage explicitly when switching back. A stage named production enables extra safeguards against destructive updates.
Unattended deploys
Destroy
--yes skips the question.
If the provider finished removing a managed stage and local cleanup was interrupted, run the same destroy --stage command again. The CLI uses its saved confirmation to finish local cleanup.
Config files and failed deploys
Config files and failed deploys
The CLI keeps its files in
CHECKFU_CONFIG_DIR, then $XDG_CONFIG_HOME/checkfu, or ~/.config/checkfu by default. Keep this directory private, and update and destroy a stage from the same directory that deployed it.The CLI records the stage before applying changes. Retry any interrupted upgrade before destroying the stage.Inspect the recorded source
Use a POSIX shell andjq to read the revisions and destroy phase recorded locally for the live stage. Set CHECKFU_CONFIG_DIR to the absolute configuration directory used to deploy that stage. The deployment output shows the saved config.json path. Its parent is the configuration directory. For another stage, use its directory under deploy/stages. The directory name may differ from the stage name.
stage-revisions.sh
checkfu deploy --stage live from the same configuration directory to finish it. If both revisions are empty, the journal has no apply to resume.
A destroy marked confirmed has finished in Cloudflare. Run checkfu destroy --stage live to finish local cleanup. A destroy marked applying may still need the provider operation. The prepared phase records a request before the operation starts. The inspection reports local records. Use the deployment’s API to check its current availability.