Skip to content

Projects

A project is one app in your team. It holds the app’s deployments, the default environment variables new deployments start with, and the tags you give it. Deleting a project deletes every deployment in it, and their data.

const project = yield* Convex.Project("App");

Alchemy generates a name from your stack, stage and resource. Set your own with name:

const project = yield* Convex.Project("App", { name: "my-app", tags: ["web"] });

Alchemy adds its own tag beside yours. Changing name renames the project in place.

A project stays when you run alchemy destroy, because deleting it deletes its deployments and data. Pipe it through RemovalPolicy.destroy() to remove it:

const project = yield* Convex.Project("App").pipe(RemovalPolicy.destroy());

A project with a prod deployment refuses to delete until that deployment is gone.

A project with the same name and no Alchemy tag fails with OwnedBySomeoneElse. Deploy with --adopt to take it over:

Terminal window
pnpm alchemy deploy --adopt