@zeroclickai/paywrap-cli
v0.0.13
Published
Interactive scaffolder + day-2 ops CLI for @zeroclickai/paywrap services.
Readme
@zeroclickai/paywrap-cli
Interactive scaffolder + day-2 ops commands for @zeroclickai/paywrap services.
Install
pnpm add -g @zeroclickai/paywrap-cli
# or one-off: npx @zeroclickai/paywrap-cli ...Binary: paywrap.
Commands
Scaffold a new service
paywrap create my-serviceInteractive prompts: payment intent (session/charge), price (USDC), scope, duration, HTTP framework, storage, queue, hosting hint, wallet generation, optional prefund for session intent. Generates a working Fastify service (with optional Drizzle + BullMQ), runs pnpm install, and leaves a clean repo with TODO markers where your business logic goes.
paywrap create my-service --yes # all defaults, non-interactiveDay-2 ops
| Command | Purpose |
|---|---|
| paywrap generate-wallet | Print a fresh keypair as WALLET_PRIVATE_KEY=… + WALLET_ADDRESS=… |
| paywrap generate-secrets | Same as above + MPP_SECRET_KEY=… — one-shot bootstrap for a new service |
| paywrap prefund <addr> [--amount-micro N] | Send USDC on Tempo from WALLET_PRIVATE_KEY to <addr> (default 50 000 micro = $0.05) |
| paywrap check <url> | Fetch <url>/healthz + <url>/.well-known/paywrap.json and pretty-print |
Each ops command reads env from your .env (via dotenv/config).
License
MIT.
