> ## Documentation Index
> Fetch the complete documentation index at: https://docs.youka.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing

> Inspect pricing and create checkout or billing portal URLs

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.

```bash theme={null}
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.

```bash theme={null}
youka billing checkout --product-type <subscription|topup> [options]
```

| Option                   | Description                                  |
| ------------------------ | -------------------------------------------- |
| `--product-type <value>` | `subscription` or `topup`. Required.         |
| `--cycle <value>`        | `monthly` or `yearly` for subscriptions.     |
| `--quantity <number>`    | Positive integer quantity. Defaults to `1`.  |
| `--open`                 | Open the checkout URL in the default browser |

Examples:

```bash theme={null}
youka billing checkout \
  --product-type subscription \
  --cycle monthly \
  --quantity 1 \
  --json
```

```bash theme={null}
youka billing checkout --product-type topup --quantity 3 --open
```

## `billing manage`

Create a billing portal URL.

```bash theme={null}
youka billing manage --json
youka billing manage --open
```

The command returns a short-lived portal URL for the current account.

## What's next

* [Credits](/en/cli/credits) - inspect current balance
* [Account](/en/cli/account) - configure authentication
* [Global options](/en/cli/global-options) - JSON mode and API URL overrides
