Installation
From Source
Install dependencies and build the CLI from the repository root:Development Mode
Run the CLI directly without building:Authentication
The CLI stores configuration in a per-user local config file. You must authenticate with an API token before using most commands.Login Command
Authenticate once with your API token:If the token is not provided as an argument, the CLI will prompt you to enter it interactively.
Configuration
API URL
The CLI connects to the Flora runtime API. You can configure the API URL in two ways: Environment variable:--api-url flag (or -a alias) can be used with any command.
The default API URL is
http://localhost:3000/apiProject Configuration
Create aflora.config.ts (or .js, .mjs) file in your project root to set deployment defaults:
flora.config.ts
entry- Default entry point for deployments (defaults tosrc/main.ts)root- Project root directory to package (defaults to.)
Available Commands
Core Commands
KV Store Commands
Help
Get help for any command:Next Steps
Deploy Scripts
Package and deploy your Discord bot scripts
View Logs
Monitor runtime logs for your deployments
KV Operations
Manage key-value stores through the CLI