@groveback/cli
v0.1.0
Published
Groveback CLI — link an app to a project and generate a typed client from its live collections (grove init / grove gen).
Maintainers
Readme
@groveback/cli
The grove CLI for Groveback: link an app
to a project and generate a typed client from its live collections.
npm i -D @groveback/cliCommands
grove init # link this app: writes grove.json (url, project, outDir)
grove gen # generate <outDir>/grove.ts from the project's live schemagrove gen reads the project's OpenAPI spec (admin key via $GROVE_ADMIN_KEY or --key;
dev-time only, never written to disk) and emits a typed client into your codebase — one
<Name> / <Name>Input interface pair per schema-bearing collection plus a createGrove()
factory riding @groveback/sdk at runtime:
import { createGrove } from './grove';
const grove = createGrove();
await grove.auth.login('[email protected]', 'password');
const posts = await grove.posts.list(); // fully typedgrove.json is non-secret by design — commit it. Regenerate after schema changes.
License
Apache-2.0
