Skip to main content
You need Node.js 22 or later and a Cloudflare account on Workers Paid with R2 enabled. Deploy from macOS or Linux (arm64 or x64).

Install the CLI

The installed CLI selects the latest immutable, qualified release. The first run signs you in to Cloudflare. Choose OAuth, keep All Scopes, and switch on Account API Token Provisioning before you approve. It generates the deployment’s API key and asks Deploy Checkfu to "live"?. When it finishes, it prints your addresses:
The CLI now uses that connection. Sign in to the Dashboard and add a model provider credential under Vaults (or export a provider key before deploying), then select it when creating an Agent. Continue with the Quickstart.

Update

Run checkfu 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

Each stage is a separate deployment with its own data and API key. The default first stage is 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

This permanently deletes the stage and all of its data. It asks first; --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.
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 and jq 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
An applied revision records the last completed apply. A candidate revision records an apply that may have reached Cloudflare. Run 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.