Skip to content

Deploying

An outline; the full instructions are in docs/deploying.md and the first deploy of a client repository in docs/first-deploy.md.

  • A company’s own repository: cos create <dir> makes one from the release’s template, or cos init adopts an existing one. Its product.ts names the platform version, the packs that are on and its apps. cos deploy installs the host from that release with its packs, then the web app.
  • A product with no repository: cos install installs a product from a verified release bundle into a Cloudflare account; cos upgrade, cos rollback, cos status and cos uninstall manage it.

Every command and option is on the cos command page.

A release is one reproducible bundle of every Worker, the migrations and every pack, with a manifest and SHA256SUMS, verified against its build attestation before anything is deployed. The deploy engine works over the Cloudflare API, with no wrangler (ADR 0163, ADR 0165). An upgrade runs a preflight, bookmarks the database, migrates, switches every Worker and smoke-checks, and rolls back on failure.

A first install may give a location hint for its database and buckets (ADR 0580). Where a client’s product is hosted is decided per client (ADR 0610).

This guide is docs/guides/deploying.md, written by hand beside the code.