Package Exports
- create-commandkit
- create-commandkit/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-commandkit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
create-commandkit
create-commandkit is a CLI utility to quickly instantiate a Discord bot with CommandKit.
Features
- Interactive, beautiful command-line interface 🖥️
- Supports CommonJS and ES Modules 📦
- Dynamic template system with examples from GitHub 🚀
- Support for all major package managers (npm, pnpm, yarn, bun, deno) 📦
- TypeScript and JavaScript support 🔧
Documentation
You can find the full documentation here.
Usage
Basic Usage
npx create-commandkit@latestWith Project Name
npx create-commandkit@latest my-botUsing Examples
# Use a curated example
npx create-commandkit@latest --example with-database
# Use a custom GitHub repository
npx create-commandkit@latest --example "https://github.com/user/repo"
# Use a specific path within a repository
npx create-commandkit@latest --example "https://github.com/user/repo" --example-path "examples/bot"CLI Options
-h, --help- Show all available options-V, --version- Output the version number-e, --example <name-or-url>- An example to bootstrap the app with--example-path <path>- Specify the path to the example separately--use-npm- Use npm as package manager--use-pnpm- Use pnpm as package manager--use-yarn- Use yarn as package manager--use-bun- Use bun as package manager--use-deno- Use deno as package manager--skip-install- Skip installing packages--no-git- Skip git initialization--yes- Use defaults for all options--list-examples- List all available examples from the official repository
Available Examples
basic-js- examples/basic-jsbasic-ts- examples/basic-tsdeno-ts- examples/deno-tswith-ai- examples/with-aiwith-leveling-system- examples/with-leveling-systemwithout-cli- examples/without-cli
Examples
# Create a basic TypeScript bot, skip installation
npx create-commandkit@latest --example basic-ts --skip-install
# Create a bot with all defaults (no prompts)
npx create-commandkit@latest --yes
# Create a bot from custom repository
npx create-commandkit@latest --example "https://github.com/username/my-commandkit-template"
# Create a bot with pnpm
npx create-commandkit@latest --use-pnpm
# List all available examples
npx create-commandkit@latest --list-examplesSupport and Suggestions
Submit any queries or suggestions in our Discord community.