KAPP is a CLI tool designed to help you quickly set up your projects using pre-defined templates. Whether you're starting a new Next.js app, Discord bot, or any general project, KAPP has got you covered with streamlined setup, customization, and user-friendly interactions.
npm i create-kapp@latest -g
- Template Categories: Choose from categories such as Next.js, Discord.js, and General.
- Quickstart Templates: Select predefined project templates like NextTemplate, APITemplate, DJS14Template, and more.
- Interactive UI: Styled UI powered by prompts and kolorist for a smooth and visually appealing experience.
- Hyperlinks: Clickable links to helpful resources like GitHub repositories and websites.
- Customization: Easily extend KAPP by adding new templates and options.
-
Clone the repository:
git clone https://github.com/kars1996/create-kapp.git cd kapp-cli
-
Install the required dependencies:
npm install
-
Compile the TypeScript code:
npm run build
-
Optionally, link the CLI globally (recommended for easier access):
npm link
Once the CLI is installed, you can start using KAPP to initialize your projects:
-
Start the CLI by running:
create-kapp
-
Follow the prompts to select your template category and template, and provide a file path for your project.
-
Watch as KAPP downloads and initializes the template for you!
KAPP is designed to be flexible and easy to extend. To add new templates:
- Navigate to
src/index.ts
. - Add your new template to the
templateOptions
object under the appropriate category. - Customize the prompts and project initialization logic as needed.
kapp-cli/
βββ src/
β βββ download.ts # Handles downloading and extracting project templates.
β βββ index.ts # Main CLI logic and user interaction.
β βββ setup.ts # CLI Utilitys for setting up the project.
β βββ ui.ts # Custom UI elements and interactions.
βββ package.json # NPM dependencies and scripts.
βββ tsconfig.json # TypeScript configuration.
βββ README.md # Project documentation (you are here!).