CLI
The Flora CLI manages deployments, logs, and KV stores against the runtime API.
Install or run
From the repo root:
bash
cargo run -p flora-cli -- --helpTo install a local binary:
bash
cargo install --path apps/cliAuth and config
- The CLI stores config via
confy(per-user config file). - Set
FLORA_API_URLor pass--api-urlto point at your runtime. - Authenticate once with a token:
bash
flora login <token>Commands
Deploy
Package a script and deploy to a guild:
bash
flora deploy --guild 123456789012345678 path/to/main.tsDeploy with an explicit root (what gets packaged):
bash
flora deploy --guild 123456789012345678 path/to/main.ts --root path/toGet
bash
flora get --guild 123456789012345678List
bash
flora listHealth
bash
flora healthLogs
Fetch recent logs:
bash
flora logs --guild 123456789012345678 --limit 100Stream logs:
bash
flora logs --guild 123456789012345678 --followKV
Create a store:
bash
flora kv create-store --guild 123456789012345678 --name settingsList stores:
bash
flora kv list-stores --guild 123456789012345678Delete a store:
bash
flora kv delete-store --guild 123456789012345678 --name settingsSet a value:
bash
flora kv set --guild 123456789012345678 --store settings --key prefix "!"Set with expiration and metadata:
bash
flora kv set --guild 123456789012345678 --store settings --key session "{ \"user\": \"123\" }" \
--expiration 1735689600 --metadata "{\"source\":\"login\"}"Get a value:
bash
flora kv get --guild 123456789012345678 --store settings prefixDelete a value:
bash
flora kv delete --guild 123456789012345678 --store settings prefixList keys:
bash
flora kv list-keys --guild 123456789012345678 --store settings --prefix user: --limit 100