ffdb-cli
v0.1.0
Published
CLI for FFDB project setup, type generation, and developer workflows
Maintainers
Readme
ffdb
The FFDB CLI creates new apps from templates and can generate TypeScript types from a live FFDB schema.
Install
npm install -g ffdbUsage
ffdb --helpCommands
ffdb init
Create a new FFDB app from an interactive template flow.
ffdb initffdb generate
Generate TypeScript types from your FFDB schema.
ffdb generate --url http://localhost:3000 --token your-admin-token --out ./src/ffdb.types.tsIf you already have API_URL and FFDB_AUTH_TOKEN in .env, you can also run:
ffdb generateOutput
The generated file exports a Database interface map that you can use with ffdb-client for type-safe queries.
