stripe-cli

A handful tool to create fake dataset for Stripe

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
stripe-cli
110.1.04 years ago9 years agoMinified + gzip package size for stripe-cli in KB

Readme

Stripe Generator

Generate a full set of Stripe fake data from command line

About

Installation

npm i -g stripe-cli
or if you love yarn
yarn global add stripe-cli

Setup

You need to provide your Stripe private key or a resticted key thought a .striperc or stripe.config.json file in the directory you'll run the CLI app with this scheme :
{
	"stripe_key": "pk_test_*******"
}

⚠️ Warning : The program will raise an exception if you try to give an live key, this tool is intented to generate FAKE DATASETS
✅ Pro tip : You can use one config file per project as it's a common practice to have separate Stripe accounts for separate projects

Usage

Start by using, you'll see all commands available and options ```bash $ stripe --help ```

Available commands

Here's some of available commands and few of their options

Create customer

```bash $ stripe create customers
--nationality=fr --attach-card ```

Create charge

```bash $ stripe create charge --customer=cusXXXXXXX --amount=15000 --currency=EUR --token=tokvisa ```

Create payout

```bash $ stripe create payout --account=acctXXXXXXX --amount=100000 --currency=USD ```

Contributing

See CONTRIBUTING.md

Licence

See LICENCE.md

Maintainers

Clément SAUVAGE

Credit

The stripe generator icon was made by my good friend Vicent a.k.a Webalys