Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion apps/docs/pages/guide/create-commandkit.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Callout } from 'nextra/components';

# create-commandkit

Besides installing CommandKit to your existing project, you can also start a new one with `create-commandkit` — a command-line utility used for creating new discord.js bots with CommandKit.
Expand All @@ -12,14 +14,28 @@ npm create commandkit@latest

This will start the CLI in the current directory.

### Development version

Similar to the main package, you could try the `dev` or `next` versions of create-commandkit:

<Callout type="warning">
The development version is likely to have bugs.
</Callout>

```sh copy
npm create commandkit@dev
```

## Prompts

When running create-commandkit, you should be asked the following questions:

- **Project Directory:** Defines where your project will be located. It defaults to the current working directory.
- **Directory:** Defines where your project will be located. It defaults to the current working directory.

- **Package Manager:** Lets you choose which package manager to use — npm, pnpm, or Yarn.

- **Language ([Development version](/guide/installation#development-version) only):** The language to use for your project — JavaScript or TypeScript.

- **Module Type:** Allows you to pick between CommonJS (using require and module.exports), and ESM (using import and export).

- **Bot Token:** Asks you for your bot token, and writes it into the `.env` file where it will be stored.
Expand Down