The fastest way to create production-ready Discord bots
Interactive prompts • GitHub-powered templates • Smart conflict resolution • Auto-configured
Installation • Usage • Features • Tech Stack • Contributing
build-discord-app
is a modern CLI tool that scaffolds production-ready Discord bot applications in seconds. It leverages GitHub-hosted templates and provides an intuitive setup experience with intelligent conflict resolution and automatic project configuration.
This tool was created by Dipanshu Sahu as part of #100DaysOfCode journey to make Discord bot development easier and faster for everyone.
- Lightning Fast: Get a fully configured Discord bot project in under 30 seconds
- Interactive Experience: Beautiful CLI prompts powered by @clack/prompts
- Smart Templating: Templates fetched directly from GitHub using degit
- Conflict Resolution: Intelligent handling of existing files and directories
- Production Ready: Generated projects follow Discord.js best practices
- Auto-Configuration: Automatically sets up package.json with your details
This CLI is built using the following technologies:
- Node.js - Runtime environment
- JavaScript (ESM) - Modern module system and syntax
- @clack/prompts - For beautiful and interactive terminal prompts
- degit - For fetching templates from GitHub
- fs-extra - Extra filesystem utilities
- picocolors - Minimal terminal styling
npx build-discord-app
# Global installation
npm install -g build-discord-app
build-discord-app
- Node.js 16+ (v18+ recommended for optimal compatibility)
- npm or yarn package manager
- Git (for template fetching)
build-discord-app --version
npx build-discord-app
Follow the interactive prompts.
npx build-discord-app .
npx build-discord-app my-bot -- --yes
Note: When using npx
, add --
before flags to pass them through.
build-discord-app [project-name] [options]
build-discord-app
build-discord-app my-bot
build-discord-app .
build-discord-app my-bot --yes
build-discord-app my-bot --pkgname my-pkg --lang js --yes
- Interactive CLI with smart prompts
- GitHub template fetching using
degit
- Auto config of project settings
- ESLint and Prettier support out of the box
- Safe directory and file handling
- Easily extendable and contributor-friendly
Templates are hosted in the build-discord-app-templates
repository.
Each template includes:
- Slash command setup
- Event handler boilerplate
- .env example file
- Best practices structure
- Use Node 16+
- Ensure Git is installed
- Try
npx build-discord-app@latest
if facing cache issues
MIT © 2025 Dipanshu Sahu
Made with ❤️ for the Discord developer community
⭐ Star this project if you find it helpful!