flapii CLI
flapii is the command-line client for the flAPI Configuration Service. It talks to a running flapi server over HTTP (/api/v1/_config/*) to inspect and manage endpoints, SQL templates, caches, and project settings at runtime — no restart required.
flapii is a separate binary from the flapi server. For the server's CLI flags (-c, -p, --log-level, --validate-config, --config-service, --config-service-token, --no-telemetry) and the flapi pack / info / unpack self-packaging subcommands, see the dedicated Server CLI reference.
Installation
flapi (server) and flapii (CLI) are shipped together. Both binaries live inside the flapi-io PyPI wheel and inside the GitHub release archive for your platform.
Install via PyPI (recommended)
pip install flapi-io
flapi --help # server
flapii --help # CLI
Both flapi and flapii entry points are installed on your PATH by a single pip install. The package name is flapi-io because flapi is taken on PyPI — there is no separate flapii distribution.
Standalone binaries
Each GitHub release ships pre-compiled archives that contain both binaries:
| Asset | Contents |
|---|---|
flapi-linux-amd64.tar.gz | flapi (server) + flapii (CLI) |
flapi-linux-arm64.tar.gz | flapi + flapii |
flapi-macos-arm64.tar.gz | flapi + flapii |
flapi-windows-amd64.zip | flapi.exe + flapii.exe |
Download from the Releases page, extract, and put both binaries on your PATH:
curl -L https://github.com/DataZooDE/flapi/releases/latest/download/flapi-linux-amd64.tar.gz \
| tar xz
chmod +x flapi flapii
./flapii --help
Try without installing
uvx --from flapi-io flapii --help
uvx --from flapi-io flapi -c flapi.yaml # run the server the same way
Talking to a server
flapii needs a running flapi server with the Configuration Service enabled:
# Start the server with the config service API exposed
./flapi -c flapi.yaml --config-service --config-service-token "$FLAPI_CONFIG_SERVICE_TOKEN"
Point flapii at it via flags or environment variables:
export FLAPI_BASE_URL=http://localhost:8080
export FLAPI_CONFIG_SERVICE_TOKEN="your-token"
flapii ping
flapii endpoints list