# ocloud plan

Source: https://olef.dev/docs/reference/ocloud/plan

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

View plan and current-period usage, manage upgrades, billing portal, spend cap, and credits

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud plan change

Switch plan. Without a paid plan: opens Checkout. A higher plan (or monthly to yearly) applies now, prorated; a lower plan or `free` applies at the end of the period. The current plan again undoes a pending change

```bash
ocloud plan change --help
```

| Argument | Description |
| --- | --- |
| `<plan>` | **Required.** The plan id (`ocloud plan` lists them): free, pro |
| `--yearly` | Bill yearly (two months free) |
| `--monthly` | Bill monthly |
| `--no-browser` | Print the Checkout URL instead of opening a browser |

## ocloud plan credits buy

Buy a credit pack at Checkout: 50, 200 or 1000 (= $1,100 of credits)

```bash
ocloud plan credits buy --help
```

| Argument | Description |
| --- | --- |
| `<pack>` | **Required.** Positional argument. |
| `--no-browser` | Print the Checkout URL instead of opening a browser |

## ocloud plan portal

Open the payment portal: card, invoices and receipts, cancel

```bash
ocloud plan portal --help
```

| Argument | Description |
| --- | --- |
| `--no-browser` | Print the portal URL instead of opening a browser |

## ocloud plan spend-cap

Cap this period's bill (plan price plus overage); usage beyond the included amounts stops at the cap. `default` = the plan price + $50

```bash
ocloud plan spend-cap --help
```

| Argument | Description |
| --- | --- |
| `<usd>` | **Required.** Positional argument. |

## ocloud plan usage

Usage this period against the plan: included vs used per meter, overage, credits, spend cap, reset date

```bash
ocloud plan usage --help
```
