DJS Commandsv2 docs
Getting Started

Getting Started

Install DJS Commands, register your first command, and ship a working bot.

This section walks you from a blank directory to a Discord bot that responds to a slash command. If you already have a Discord.js project, jump straight to Your first command.

Fastest path: create-djs-commands

npx create-djs-commands my-bot
cd my-bot
cp .env.example .env  # then add your DISCORD_TOKEN
bun run dev

The CLI scaffolds the directory layout, tsconfig.json, .env.example, and a working /ping command. Pick one of the templates (minimal, components-v2 showcase, or moderation with Drizzle) and you're online in under a minute.

DJS Commands v2 targets Discord.js v14.26+ and Node.js 22+. Bun 1.2+ is supported and is the development runtime used by the maintainers.

Prerequisites

  • A Discord application + bot token. If you don't have one, follow Discord's Building Your First Bot guide.
  • Node.js 22+ or Bun 1.2+ installed.
  • A package manager you're comfortable with (bun, pnpm, npm, or yarn).

Last updated on

On this page