create-krew
v0.0.22
Published
A CLI tool to quickly scaffold your project's infrastructure. It streamlines the setup process by automating the creation of GitHub repositories, Vercel deployments, and CI/CD pipelines.
Downloads
56
Readme
create-krew
A CLI tool to quickly scaffold your project's infrastructure. It streamlines the setup process by automating the creation of GitHub repositories, Vercel deployments, and CI/CD pipelines.
Features
- ✅ Supports popular frameworks: astro, remix, nextjs, and sveltekit
- ✅ Initializes a GitHub repository
- ✅ Deploys the application to Vercel (supports astro by default)
- ✅ Sets up GitHub Actions for CI/CD
- ✅ Easily tears down the application with the same speed as scaffolding
Usage
To create a new project, run:
npm create krew@latest your-project-name -- --framework astro
CLI Flags
May be provided in place of prompts
| Name | Description |
|:--------------------------|:----------------------------------------------------------------------------------------------------------------------------|
| --help
(-h
) | Display available flags. |
| --framework <framework>
| Specify your framework of choice (options: astro
/remix
/nextjs
/svelte
) |
| --destroy
| Tears down the entire application. Deletes github repository and deletes vercel project. CAUTION: THIS IS IRREVERSIBLE |
What it does
- Scaffolds a new project using the selected framework.
- Initializes a local Git repository.
- Creates a remote repository on GitHub.
- Sets up GitHub Actions for continuous integration and deployment (CI/CD).
- Includes unit tests and end-to-end (E2E) tests, running against preview deploys.
- Deploys the application to Vercel.
Prerequisites
Before using create-krew, ensure you have the following:
- A GitHub account
- A Vercel account
- Node.js version 18.x or higher
Setup Process
During setup, you'll be prompted to:
- Sign into GitHub and authenticate the Krew OAuth app.
- Sign into Vercel, if you haven't done so already.
Teardown
To remove all resources created by create-krew, use the --destroy
flag from within the root directory of your project:
create-krew --destroy
Warning: This action is irreversible and will delete your GitHub repository and Vercel project.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
Support
If you encounter any problems or have any questions, please open an issue on the GitHub repository.