@harmonixjs/cli
v1.0.0
Published
CLI for Harmonix Discord framework
Downloads
134
Maintainers
Readme
@harmonixjs/cli
CLI tool for the Harmonix Discord framework.
Quickly initialize projects, generate commands, events, and components for your Discord bot.
Installation
You can use npx to run the CLI without installing it globally:
npx @harmonixjs/cli <command>Or install globally:
npm install -g @harmonixjs/cliUsage
1. Initialize a new project
Creates a new Harmonix bot project with the recommended structure:
npx @harmonixjs/cli initThis will generate:
- Project folder with
srcdirectorie - Base configuration files
- Initial bot setup
2. Create a new component
Generates commands, events, or components using predefined templates:
npx @harmonixjs/cli createThis will generate the respective file in the appropriate folder with boilerplate code ready to use.
Project Structure
After initializing, your project will look like this:
project/
├─ node_modules/
├─ src/
│ ├─ commands/
│ ├─ events/
│ ├─ components/
│ └─ index.ts
├─ .env
├─ package-lock.json
├─ package.json
└─ tsconfig.jsonsrc/- your TypeScript source codesrc/index.ts- basic index.ts file.env- default environment configuration
Contributing
Feel free to open issues or submit pull requests. Please follow the code style and structure used in the templates. If you create some plugins you could open issues or submit pull requests to add your plugins/cli features.
