falkordb-admin drives the same
Admin Server API as the console, which makes it a
good fit for scripting, CI, and support sessions.
Run it
The CLI ships inside the Admin Server and Admin UI images, so the quickest way to use it is from a pod that is already running:Connect
The CLI keeps the server URL and session cookie in~/.falkordb/admin-cli/config.json.
Add
--output json to any command to get machine-readable output.
Commands that act on a deployment require
--namespace. Only the top-level
listings, such as deployments list, treat it as optional.Common tasks
falkordb-admin --help for the full command list.
Change a deployment
The CLI changes deployments with the deployment body:deployments create --filetakes a body withschemaVersion: 1.deployments update --filetakes a merge patch withschemaVersion: 1;deployments replace --filetakes a whole body. Add--generationwith themetadata.generationyou read, so a change made since is refused instead of overwritten, and--dry-runto see the plan without applying it.deployments scale,deployments upgrade, andoperations start,stop,vertical-scale,volume-expandandreconfigureread the deployment and send only what changes, with its generation.scaletakes--replicas(nodes, per shard when sharded),--shards, and--component falkordb-sentfor the sentinels; as before, sentinels keep at least 3 replicas and a deployment with sentinels or shards keeps at least 2 nodes.--generationmakes them refuse the change if the deployment moved past the generation you name.vertical-scale --cpuand--memoryset both the request and the limit;--requests-cpu,--limits-memoryand the like set one side.reconfiguretakes--parameter key=valueonce per setting, so values may contain commas.--parameter keyon its own sets afalkordbe.*setting back to its default, andkey=empties one whose default is empty, or aredis.confdirective the pods apply without a restart. See how settings are applied.- Reconfiguring Sentinel (
--component falkordb-sent),restart,switchover,rebalanceandreshardstill run as KubeBlocks operations. reshardmoves the slots in--slots(such as0-999,5000) to the shard in--to, and with--fromonly if that shard owns them.rebalancespreads the hash slots evenly across the shards of a sharded deployment. Adding or removing shards already moves slots; use it when the spread is uneven afterwards.
schemaVersion still works with create and update. The
Admin Server marks that request deprecated, and the CLI prints a warning to
stderr.
Call an endpoint directly
Anything the CLI does not wrap yet is reachable throughraw, which reuses the
stored session:
Next steps
falkordb-admin --help lists every command, and falkordb-admin <command> --help
every flag for that command.
Admin Server API
The REST API the CLI talks to
Installer reference
Options for install.sh and uninstall.sh