create-djs-commands
v2.0.1
Published
Scaffolding CLI for djs-commands — `npx create-djs-commands`
Maintainers
Readme
create-djs-commands
Scaffolding CLI for djs-commands — pick a template, answer a few prompts, get a working Discord bot.
npx create-djs-commands my-bot
# or
bunx create-djs-commands my-bot
# or
pnpm dlx create-djs-commands my-bot📘 Full documentation: https://djscommands.deoxy.dev/getting-started
What gets scaffolded
package.jsonwith the right dependencies for your adapter and package managertsconfig.json(strict, ESM, Bundler resolution)src/index.tswired tocreateCommandHandlersrc/commands/ping.tsas a starting command.env.example,.gitignore,README.md
The bot uses fs-autoloader (commandDir), so any new file under src/commands/ auto-registers on save in dev mode.
Non-interactive mode
Pass flags to skip prompts:
npx create-djs-commands my-bot \
--adapter drizzle \
--legacy \
--components-v2 \
--package-manager bun| Flag | Values | Default |
|---|---|---|
| --adapter | drizzle / prisma / mongoose / none | wizard |
| --legacy | (boolean — enable prefix commands) | false |
| --components-v2 | (boolean — install @djs-commands/jsx) | false |
| --package-manager, --pm | bun / pnpm / npm | bun |
| --no-git | (boolean — skip git init) | false |
| --skip-install | (boolean — skip dependency install) | false |
| -h, --help | | |
Next steps
Once your bot is scaffolded:
cd my-bot
cp .env.example .env # add your DISCORD_TOKEN
bun run devThen read:
- Concepts — the mental model.
- Recipes — copy-paste patterns.
- Adapter Cookbook — wiring up your DB.
