tier push

Reads the pricing.json data from the specified filename (or stdin if no filename provided) and sets up Stripe with the appropriate data.

Any plans that already exist will be ignored.

Output reports whether each plan was created, already exists, or had an error. A url to each created Product and Price in the Stripe dashboard is printed for easy access.

$ tier push ./pricing.json
ok	plan:pro@1		https://dashboard.stripe.com/test/products/tier_plan_pro_1	[plan already exists]
ok	plan:free@1		https://dashboard.stripe.com/test/products/tier_plan_free_1	[plan already exists]
ok	plan:free@2		https://dashboard.stripe.com/test/products/tier_plan_free_2	[plan already exists]
ok	plan:pro@2		https://dashboard.stripe.com/test/products/tier_plan_pro_2	[plan already exists]
ok	plan:pro@3	feature:convert	https://dashboard.stripe.com/test/products/tier_plan_pro_3	[created]
ok	plan:free@3	feature:convert	https://dashboard.stripe.com/test/products/tier_plan_free_3	[created]

To push live mode data, run:

tier push --live <filename>

This is only allowed using a restricted key minted with tier connect, and enabled with write access to Billing Resources and Core Resources. See the tier connect documentation for more information.