On this page

Defined in cli/commands/stripe.ts. Two subcommands: a read-only billing inventory export, and test-mode proofs of the Stripe behaviour billing relies on. See Stripe Integration for what each one does.

ds stripe billing-inventory#

ds -b stripe billing-inventory --out <directory>

READ-ONLY export of what Stripe holds for every customer beside DevStride's view. Writes inventory.csv plus raw JSON Lines files.

Flag Description
--out <directory> Required. Directory to write the export to. Must resolve OUTSIDE the repository — the files hold customer names, emails and negotiated prices

Needs STRIPE_INVENTORY_KEY, a restricted read-only key (rk_…); a full sk_… secret key is refused. It reads the key from your shell, else from the agent's credentials file (~/.config/devstride/agent.env, written by ds secrets pull) — never from a checkout's .env.

ds stripe prove-invoice-flow#

ds -b stripe prove-invoice-flow

Stripe TEST-MODE proofs: direct card charges, staff refunds, one-off invoices and subscription cancellation. No flags. Needs STRIPE_PROOF_KEY, a test-mode key (the test STRIPE_SECRET_KEY in .env will do).

Commands that do not exist

There is no ds stripe sync-products, sync-customers, check-quantities, or any Slack backfill-notifications command. add-products, create-customers and find-subscription-quantity were removed — billing-inventory replaces the last.


Powered by DevStride