/flapi:init [project-dir] [what data you want to expose]from flapi
Scaffolds a new flAPI project from a data source description, validates the config, and starts the server with a working endpoint.
Ships in flapi. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Set up a new flAPI project for the user. Arguments: $ARGUMENTS
Use the flapi-setup skill for the details; use flapi-rest for the first endpoint.
flapi --version (install with pip install flapi-io if missing,
which also installs flapii).flapii project init <dir> (or write flapi.yaml + sqls/ by hand
when the user wants a minimal layout). The sample endpoint reads
data/sample.csv, which init creates, so it answers immediately. Then edit flapi.yaml:
init: SQL for the DuckDB extension it needs{{env.VAR}} it uses matched by template.environment-whitelistflapi -c <dir>/flapi.yaml --validate-config must report no errors.flapi -c <dir>/flapi.yaml --config-service and call the endpoint with
curl. Show the user the OpenAPI docs at http://localhost:8080/doc./flapi:new-endpoint, /flapi:add-cache, /flapi:auth-setup).7-day visitors to each command page
7 commands in this plugin
/add-cacheAdd CacheAdd DuckLake caching to an endpoint - pick full / append / merge, write the populate SQL, refresh, measure and tune/auth-setupAuth SetupSecure flAPI endpoints and MCP tools - Basic, JWT/bearer, OIDC (Google, Azure AD, Keycloak, ...), roles, MCP OAuth - and verify it/deploy-checkDeploy CheckPre-deployment check for a flAPI project - validation, secrets, packaging, cache warm-up and replica settings, health probes/diagnoseDiagnose a failing flAPI request, startup or cache refresh - from the symptom to the root cause and a verified fix/metricsSummarize a running flAPI server's runtime metrics - slow or failing endpoints and MCP tools, rejections, slow or stale caches - with next steps/new-endpointNew EndpointCreate a REST endpoint and/or MCP tool from SQL - YAML, template, validators, a test - then validate and try itnpx claudepluginhub datazoode/flapi --plugin flapiOther plugins' commands for the same job