CLI
Alchemy’s CLI provides a convenient way to manage your infrastructure and create new projects.
deploy
Section titled “deploy”alchemy deploy [script] [options]
Deploy an Alchemy project by running alchemy deploy
.
script
(optional): Path to the entrypoint file. Defaults to./alchemy.run.ts
or./alchemy.run.js
--cwd
- Path to the project directory (defaults to current directory)--quiet
- Suppress Create/Update/Delete messages (default:false
)--stage
- Specify which stage/environment to target. Defaults to your username ($USER
, or$USERNAME
on Windows)--env-file
- Path to environment file to load--watch
- Watch for changes to infrastructure and redeploy automatically (default: false)-h, --help
- Display help for command
destroy
Section titled “destroy”alchemy destroy [script] [options]
Destroy all resources in an Alchemy project.
script
(optional): Path to the entrypoint file. Defaults to./alchemy.run.ts
or./alchemy.run.js
--cwd
- Path to the project directory (defaults to current directory)--quiet
- Suppress Create/Update/Delete messages (default:false
)--stage
- Specify which stage/environment to target. Defaults to your username ($USER
, or$USERNAME
on Windows)--env-file
- Path to environment file to load-h, --help
- Display help for command
alchemy dev [script] [options]
Run an Alchemy program in dev-mode with local simulation and hot reloading.
script
(optional): Path to the entrypoint file. Defaults to./alchemy.run.ts
or./alchemy.run.js
--cwd
- Path to the project directory (defaults to current directory)--quiet
- Suppress Create/Update/Delete messages (default:false
)--stage
- Specify which stage/environment to target. Defaults to your username ($USER
, or$USERNAME
on Windows)--env-file
- Path to environment file to load-h, --help
- Display help for command
alchemy run [script] [options]
Run an Alchemy program with read-only access to your infrastructure. No changes will be applied to your resources.
script
(optional): Path to the entrypoint file. Defaults to./alchemy.run.ts
or./alchemy.run.js
--cwd
- Path to the project directory (defaults to current directory)--quiet
- Suppress Create/Update/Delete messages (default:false
)--stage
- Specify which stage/environment to target. Defaults to your username ($USER
, or$USERNAME
on Windows)--env-file
- Path to environment file to load--watch
- Watch for changes to infrastructure and redeploy automatically (default:false
)-h, --help
- Display help for command
create
Section titled “create”alchemy create [name] [options]
Create a new Alchemy project from a template.
name
(optional): Project name or path--template
- Project template type (choices: “typescript”, “vite”, “astro”, “react-router”, “sveltekit”, “tanstack-start”, “rwsdk”, “nuxt”)--yes
- Skip prompts and use defaults (default:false
)--overwrite
- Overwrite existing directory (default:false
)--install
- Install dependencies after scaffolding--pm
- Package manager to use (choices: “bun”, “npm”, “pnpm”, “yarn”, “deno”)--vibe-rules
- Setup vibe-rules for the specified editor (choices: “cursor”, “windsurf”, “vscode”, “zed”, “claude-code”, “gemini”, “codex”, “amp”, “clinerules”, “roo”, “unified”)-h, --help
- Display help for command