Skip to main content
Use billing commands when an automation needs to show pricing, start a checkout, or open the billing portal for the authenticated account.

billing catalog

Show subscription and top-up pricing.
youka billing catalog --json
The response includes credit unit size, allowed quantities, subscription pricing, storage rules, top-up eligibility, and whether the account already has an active subscription.

billing checkout

Create a Stripe checkout URL.
youka billing checkout --product-type <subscription|topup> [options]
OptionDescription
--product-type <value>subscription or topup. Required.
--cycle <value>monthly or yearly for subscriptions.
--quantity <number>Positive integer quantity. Defaults to 1.
--openOpen the checkout URL in the default browser
Examples:
youka billing checkout \
  --product-type subscription \
  --cycle monthly \
  --quantity 1 \
  --json
youka billing checkout --product-type topup --quantity 3 --open

billing manage

Create a billing portal URL.
youka billing manage --json
youka billing manage --open
The command returns a short-lived portal URL for the current account.

What’s next