Skip to content

Convex.DeployKey reference

Source: packages/convex/src/DeployKey.ts

A deploy key for one Convex deployment, for CI or Convex.Functions.

Convex shows a key only when it is created, so an existing key can’t be adopted. Adopting one deletes it and creates a new one with the same name, which invalidates anything still using the old value.

const key = yield* Convex.DeployKey("Deploy", {
deployment: prod,
allowedActions: ["deployment:deploy"],
});