@manggaleh/cli
v0.3.0
Published
manggaleh CLI (mg): sign in, generate TypeScript types, and manage functions & environments.
Readme
@manggaleh/cli
Command-line tool (mg) for manggaleh project owners:
sign in once, manage functions, and generate TypeScript types from your schema.
npm install -g @manggaleh/cliUsage
mg login --url https://api.manggaleh.com # save the session (~/.manggaleh/config.json)
mg projects # list projects
mg env list --project acme # environments
mg functions push --project acme --env dev --file ./fn/topProducts.js # upsert by name
mg functions list --project acme --env dev
mg types --project acme --env dev --out src/db.d.ts # TS types from the registrymg types generates one interface per collection plus a Collections map,
so SDK calls (client.data.from<Products>("products")) are fully typed.
Credentials are read from the flags, the MANGGALEH_EMAIL / MANGGALEH_PASSWORD
environment variables, or an interactive prompt.
Documentation
Full guide: https://manggaleh.com · License: MIT
AI agents: machine-readable docs live at https://manggaleh.com/llms.txt.
