CLI
INFO
Currently the CLI is unpublished. It will be published soon as @uwu/flora-cli.
The Flora CLI manages deployments, logs, and KV stores with the Flora Server API.
Login
Generate a API Token at https://app.flora.uwu.network/settings and then login with:
bash
flora login <token>Commands
Deploy
To deploy to a guild:
bash
flora deploy- You can add
--guild [guildId]to specify your guild (it prompts by default). - A positional arg to specify a custom entrypoint script is also provided if needed.
- Using
--root path/toallows you to specify a custom root (what gets packaged).
Get
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