Memberstack CLI

Prices

Manage prices for your Memberstack plans.

View Markdown
memberstack prices <subcommand> [options]

prices create

Create a price for a plan.

memberstack prices create [options]

Options

OptionDescriptionRequired
--plan-id <id>Plan ID to add the price toYes
--name <name>Price nameYes
--amount <amount>Price amountYes
--type <type>Price type: SUBSCRIPTION or ONETIMEYes
--currency <currency>Currency code (e.g. USD, EUR, GBP)No
--interval-type <type>Billing interval: YEARLY, MONTHLY, or WEEKLYNo
--interval-count <count>Number of intervals between billingsNo
--setup-fee-amount <amount>Setup fee amountNo
--setup-fee-name <name>Setup fee nameNo
--setup-fee-enabledEnable setup feeNo
--free-trial-enabledEnable free trialNo
--free-trial-requires-cardRequire card for free trialNo
--free-trial-days <days>Free trial duration in daysNo
--expiration-count <count>Expiration countNo
--expiration-interval <interval>Expiration interval: MONTHS or DAYSNo
--cancel-at-period-endCancel at period endNo

Examples

memberstack prices create --plan-id pln_abc123 --name "Monthly" --amount 999 --type SUBSCRIPTION --interval-type MONTHLY

memberstack prices create \
  --plan-id pln_abc123 \
  --name "One-Time Access" \
  --amount 4999 \
  --type ONETIME

memberstack prices create \
  --plan-id pln_abc123 \
  --name "Annual Pro" \
  --amount 9999 \
  --type SUBSCRIPTION \
  --interval-type YEARLY \
  --free-trial-enabled \
  --free-trial-days 14

prices update

Update a price.

memberstack prices update <priceId> [options]

Arguments

ArgumentDescriptionRequired
priceIdPrice ID to updateYes

Options

OptionDescription
--name <name>Price name
--amount <amount>Price amount
--type <type>Price type: SUBSCRIPTION or ONETIME
--currency <currency>Currency code
--interval-type <type>Billing interval: YEARLY, MONTHLY, or WEEKLY
--interval-count <count>Number of intervals between billings
--setup-fee-amount <amount>Setup fee amount
--setup-fee-name <name>Setup fee name
--setup-fee-enabled / --no-setup-fee-enabledEnable or disable setup fee
--free-trial-enabled / --no-free-trial-enabledEnable or disable free trial
--free-trial-requires-cardRequire card for free trial
--free-trial-days <days>Free trial duration in days
--expiration-count <count>Expiration count
--expiration-interval <interval>Expiration interval: MONTHS or DAYS
--cancel-at-period-end / --no-cancel-at-period-endCancel at period end

Examples

memberstack prices update prc_abc123 --name "Monthly Pro" --amount 1499
memberstack prices update prc_abc123 --free-trial-enabled --free-trial-days 7
memberstack prices update prc_abc123 --no-free-trial-enabled

prices activate

Reactivate a price.

memberstack prices activate <priceId>

Arguments

ArgumentDescriptionRequired
priceIdPrice ID to reactivateYes

Example

memberstack prices activate prc_abc123

prices deactivate

Deactivate a price.

memberstack prices deactivate <priceId>

Arguments

ArgumentDescriptionRequired
priceIdPrice ID to deactivateYes

Example

memberstack prices deactivate prc_abc123

prices delete

Delete a price.

memberstack prices delete <priceId>

Arguments

ArgumentDescriptionRequired
priceIdPrice ID to deleteYes

Example

memberstack prices delete prc_abc123

FAQ

How is this guide?

Last updated on

On this page