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.
Create a project
Section titled “Create a project”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.
Remove a project on destroy
Section titled “Remove a project on destroy”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.
Take over an existing project
Section titled “Take over an existing project”A project with the same name and no Alchemy tag fails with OwnedBySomeoneElse. Deploy with --adopt to take it over:
pnpm alchemy deploy --adoptbun alchemy deploy --adoptnpx alchemy deploy --adoptyarn alchemy deploy --adopt