Stripe - nself-org/plugins GitHub Wiki
- Shell actions:
nself plugin stripe <action> [args...] - TypeScript CLI:
pnpm exec nself-stripe <command> [args...](run fromplugins/stripe/ts)
| Action | Syntax | Subcommands | Notes |
|---|---|---|---|
sync |
nself plugin stripe sync [target] |
all, customers, products, prices, subscriptions
|
default target: all
|
customers |
nself plugin stripe customers <command> [args] |
list [limit] [offset], get <id>, search <query>, count
|
count also accepts stats alias |
subscriptions |
nself plugin stripe subscriptions <command> [args] |
list [status] [limit], get <id>, stats, mrr
|
status examples: active, trialing, past_due, canceled, all
|
invoices |
nself plugin stripe invoices <command> [args] |
list [status] [limit], get <id>, stats, recent [limit], failed [limit]
|
status examples: draft, open, paid, uncollectible, void, all
|
webhook |
nself plugin stripe webhook <command> [args] |
status, events [limit] [type], get <event_id>, errors [limit], retry <event_id>, retry-all [limit]
|
webhook inspection/retry controls |
| Command | Syntax | Options |
|---|---|---|
sync |
pnpm exec nself-stripe sync |
-r, --resources <resources>, -i, --incremental
|
server |
pnpm exec nself-stripe server |
-p, --port <port>, -h, --host <host>
|
init |
pnpm exec nself-stripe init |
none |
status |
pnpm exec nself-stripe status |
none |
customers |
pnpm exec nself-stripe customers [action] [id] |
-l, --limit <limit> |
subscriptions |
pnpm exec nself-stripe subscriptions [action] [id] |
-l, --limit <limit>, -s, --status <status>
|
invoices |
pnpm exec nself-stripe invoices [action] [id] |
-l, --limit <limit>, -s, --status <status>
|
products |
pnpm exec nself-stripe products [action] [id] |
-l, --limit <limit> |
prices |
pnpm exec nself-stripe prices [action] [id] |
-l, --limit <limit> |
Both shell and TS sync commands can aggregate multiple Stripe accounts into one sync run when these env vars are set:
-
STRIPE_API_KEYS(comma-separated API keys) -
STRIPE_ACCOUNT_LABELS(optional comma-separated labels in the same order) -
STRIPE_WEBHOOK_SECRETS(optional comma-separated webhook secrets in the same order)
If not provided, the plugin falls back to single-account mode with STRIPE_API_KEY.
Synced rows are tagged with source_account_id; CLI list output also prefixes records with [account-id].
Action values in TS CLI:
-
customers:list,show,sync -
subscriptions:list,show,stats -
invoices:list,show -
products:list,show -
prices:list,show
nself plugin stripe sync subscriptions
nself plugin stripe customers search [email protected]
nself plugin stripe invoices list paid 50
nself plugin stripe webhook events 100 customer
pnpm exec nself-stripe subscriptions statsplugins/stripe/actions/*.shplugins/stripe/ts/src/cli.ts