stripe-cli
Stripe CLI operations for local development, webhook testing, fixture-based event simulation, API inspection, and sandbox resource management. Use when installing or verifying stripe CLI, logging in, forwarding webhook events (`stripe listen --forward-to`), triggering test events (`stripe trigger`), replaying/resending events, tailing request logs, or performing safe subscription/checkout debugging in Stripe sandbox environments.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/felipeoff/stripe-cli-skillStripe CLI
Overview
Use this skill to run Stripe CLI workflows safely and reproducibly for local and staging environments.
Default posture: sandbox-first, least privilege, no secret leakage, no destructive live-mode actions.
Quick Start
# check install
stripe version
# authenticate (browser flow)
stripe login
# verify account context
stripe config --list
If using API key auth in CI/local automation:
export STRIPE_API_KEY=sk_test_...
stripe customers list --limit 3
Workflow Decision Tree
-
Need to debug incoming webhooks locally?
- Use:
stripe listen --forward-to ... - See:
references/workflows.md→ Webhook Local Loop
- Use:
-
Need test events quickly (checkout/subscription/invoice)?
- Use:
stripe trigger ...orstripe fixtures ... - See:
references/workflows.md→ Trigger & Fixtures
- Use:
-
Need inspect API behavior/errors?
- Use:
stripe logs tail,stripe events list,stripe events resend - See:
references/commands.md
- Use:
-
Need plan change/proration diagnostics?
- Use: direct API calls via CLI (
stripe subscriptions update ...,stripe invoices create_preview ...) - Always run in test mode first.
- Use: direct API calls via CLI (
Safe Defaults (Mandatory)
- Prefer test keys (
sk_test_...) and sandbox account context. - Never print full secrets in logs or commits.
- Avoid
--skip-verifyexcept when explicitly required in local-only environments. - Confirm account context before sensitive operations:
stripe config --liststripe whoami(if available)
- Treat
stripe triggeras stateful: it creates objects and side effects in sandbox.
Common Tasks
1) Forward webhooks to local app
stripe listen --forward-to localhost:4242/webhook
Filter events when needed:
stripe listen \
--events checkout.session.completed,invoice.paid,invoice.payment_failed,customer.subscription.updated \
--forward-to localhost:4242/webhook
Load event configuration from dashboard webhook endpoint:
stripe listen --load-from-webhooks-api --forward-to localhost:4242
2) Trigger test events
stripe trigger checkout.session.completed
stripe trigger invoice.paid
stripe trigger customer.subscription.updated
For complex scenarios, prefer fixtures:
stripe fixtures path/to/fixture.json
3) Tail logs and inspect events
stripe logs tail
stripe events list --limit 10
stripe events resend evt_... --webhook-endpoint=we_...
4) API version testing
stripe products create --name "Test Product" --latest
stripe products create --name "Pinned Version" --stripe-version 2026-01-28.clover
Security Guardrails
Before running commands that mutate state, verify:
- Environment = sandbox/test
- Correct account/project
- No production webhook endpoint accidentally targeted
- No plaintext secrets in shell history/docs
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-felipeoff-stripe-cli-skill": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Ant Design Skill
Skill by felipeoff
faster-whisper-gpu
High-performance local speech-to-text transcription using Faster Whisper with NVIDIA GPU acceleration. Transcribe audio files locally without sending data to external services.
Sonarqube Analyzer
Skill by felipeoff