Deploying
An outline; the full instructions are in docs/deploying.md and the first deploy of a client repository in docs/first-deploy.md.
Two ways in
Section titled “Two ways in”- A company’s own repository:
cos create <dir>makes one from the release’s template, orcos initadopts an existing one. Itsproduct.tsnames the platform version, the packs that are on and its apps.cos deployinstalls the host from that release with its packs, then the web app. - A product with no repository:
cos installinstalls a product from a verified release bundle into a Cloudflare account;cos upgrade,cos rollback,cos statusandcos uninstallmanage it.
Every command and option is on the cos command page.
What a release is
Section titled “What a release is”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.
Where it runs
Section titled “Where it runs”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.