The flint CLI can configure, inspect, reset, compact, and serve limits.
Use a custom data directory with --data-dir:
flint --data-dir .flint-prod limit listConfigure a limit:
flint limit add "api:user-42" --rate 100 --per 1m --algorithm token_bucketCheck and consume quota:
flint limit check "api:user-42"
flint limit check "api:user-42" --cost 5Inspect status:
flint limit status "api:user-42"List all limits:
flint limit listReset a limit:
flint limit reset "api:user-42"Show history:
flint limit history "api:user-42"Show busiest limits:
flint limit top --by denied --limit 20
flint limit top --by allowed --limit 20flint limit check-all user:42 org:acme route:/v1/chatWith costs:
flint limit check-all user:42 org:acme route:/v1/chat --costs 1,10,1Compact AOF into a snapshot:
flint log compactRun storage health checks:
flint doctorStart a local shared server:
flint --data-dir .flint-shared server start \
--bind 127.0.0.1:7878 \
--token dev-secretStart with batch fsync:
flint --data-dir .flint-shared server start \
--bind 127.0.0.1:7878 \
--token dev-secret \
--sync batch \
--flush-every-ms 100 \
--flush-every-events 100 \
--max-blocking 128Shared mode exposes the HTTP API documented in Shared Mode.