nexorapl-cli
v1.0.0
Published
CLI for Nexora Platform - Discord Bot Generator and Manager
Downloads
8
Readme
Nexora CLI
CLI for the Nexora Platform responsible for generating Discord bot projects and configuring communication with the Nexora API.
Features
- Generate complete Discord bot projects
- Configure API communication with Nexora API
- Manage bot registration and status
- Local-only CLI (no backend or frontend)
Installation
- Install dependencies:
npm install- Build the CLI:
npm run build- Link globally to use as a command:
npm linkOr run directly:
npm run dev -- [command]Commands
Initialization
nexora init- Generate a new Discord bot projectnexora init -d <directory>- Generate project in a specific directory
Authentication
nexora login- Configure API credentials
Status & Management
nexora status- Show current status of CLInexora bots list- List all registered bots
Generated Bot Features
The generated Discord bot includes:
- Connection to Discord via discord.js
- Automatic registration with Nexora API on startup
- Periodic heartbeat sending to API
- Status updates when starting/stopping
- Proper shutdown handling
Configuration
The CLI stores configuration in a .nexora.json file:
{
"apiUrl": "http://localhost:3000",
"apiKey": "YOUR_API_KEY"
}Development
- Written in TypeScript
- Uses Commander.js for command handling
- Uses Inquirer for interactive prompts
- Follows clean architecture with separated commands and utilities
