CLI Overview
StatikAPI provides two command-line tools to help you work efficiently:
statikapi— the core CLI used to develop and build your static JSON API.create-statikapi— the scaffolding tool to quickly start new projects with templates and deploy presets.
Use them together like this:
create-statikapi- start a new project quickly
- choose a template
- get example routes and scripts
statikapi- build JSON locally
- run watch/dev mode
- preview the generated routes at
/_ui/
If you are working on the Cloudflare path, the scaffold also introduces:
statikapi-cf
through the generated project scripts, although that adapter CLI is documented from the Cloudflare pages rather than as a separate top-level CLI page.