Quickstart
Install the CLI
Section titled “Install the CLI”npm install --save-dev @guapocado/cliCreate a Billing Config
Section titled “Create a Billing Config”npx guap initThis creates a billing config in your project. Guapocado is config-first, so the config file is the source of truth for products, plans, entitlements, and meters.
Log In
Section titled “Log In”npx guap login --sandboxLocal platform development can point the CLI at a local dashboard:
npx guap login --sandbox --url http://localhost:4777Preview and Push
Section titled “Preview and Push”npx guap plan --sandboxnpx guap push --sandboxCheck an Entitlement
Section titled “Check an Entitlement”import { createGuapocadoClient } from "@guapocado/sdk";
const guap = createGuapocadoClient({ apiKey: process.env.GUAPOCADO_API_KEY!, customerId: "org_123",});
const allowed = await guap.has("advanced-analytics");