tier switch

tier switch [-c] [accountID]

This command tells tier to use the provided accountID, or, if run with -c, to create and use a new isolation account, when run from the current working directory.

To switch back to the default account:

  1. rename the tier.state file,
  2. change your working directory, or
  3. delete the tier.state file.

Example

This example demostrates pushing a pricing model to an isolated account and then starting fresh with a new isolated account, and then switching back to the default account by deleting the tier.state file.

tier connect
tier switch -c
tier push pricing.json
tier pull
rm tier.state
tier switch -c
tier pull
tier push pricing2.json
rm tier.state
tier pull

Prerequisites

Connected accounts MUST be enabled in your Stripe account. Enable Connect on the Stripe dashboard.

Constraints

Commands run in isloated mode for an account not accessible by the current API key, will fail. Move to a new directory or move the tier.state file to resume using the API key, or run tier connect and login to the root account that owns the account in the tier.state file.