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

# ankra cost

> Read cloud cost: the fleet rollup, a cluster's estimate and the pricing settings

## ankra cost

Read the organisation's cloud cost - the same figures the portal shows under
Cost - for reporting and automation.

Every hour Ankra prices each cluster from its node inventory at the provider
list price and allocates the result to namespaces by their CPU and memory
share, so each team sees the share it drives. The fleet summary rolls every
priced cluster up by provider and lists the costliest clusters; a cluster
read adds the component breakdown, the namespace allocation and the daily
trend. Pricing settings (display currency, effective discount, network
egress estimate) apply to every figure.

Pass -o json (or yaml) for the full API document.

## ankra cost cluster

A cluster's cost estimate: totals, component breakdown, namespace allocation and readiness

```bash theme={null}
ankra cost cluster <name-or-id> [flags]
```

**Examples**

```bash theme={null}
ankra cost cluster prod-eu
  ankra cost cluster 1834920e-3001-4157-8938-33c447031033 -o json
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra cost settings

Pricing settings: display currency, effective discount and the network egress estimate

## ankra cost settings get

Show the organisation's pricing settings

```bash theme={null}
ankra cost settings get [flags]
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |

## ankra cost settings set

Change one or more pricing settings. Only the flags you pass change; the
other settings keep their current values. The route is organisation-admin
only and every fleet and cluster figure re-prices on the next read.

```bash theme={null}
ankra cost settings set [flags]
```

**Examples**

```bash theme={null}
ankra cost settings set --currency eur
  ankra cost settings set --discount 12.5
  ankra cost settings set --include-egress=false
```

**Flags**

| Flag               | Default | Description                                                                         |
| ------------------ | ------- | ----------------------------------------------------------------------------------- |
| `--currency`       |         | Display currency: usd, eur or gbp                                                   |
| `--discount`       | `0`     | Effective discount in percent (0-100), applied on top of list prices; 10 means 10%  |
| `--include-egress` | `false` | Include an estimated network egress charge (pass --include-egress=false to drop it) |
| `-o`, `--output`   |         | Output format: json or yaml (default: human-readable)                               |

## ankra cost summary

Fleet cost rollup: projected month end, month to date, run rate, by provider and costliest clusters

```bash theme={null}
ankra cost summary [flags]
```

**Examples**

```bash theme={null}
ankra cost summary
  ankra cost summary -o json
```

**Flags**

| Flag             | Default | Description                                           |
| ---------------- | ------- | ----------------------------------------------------- |
| `-o`, `--output` |         | Output format: json or yaml (default: human-readable) |
