﻿---
title: cloud billing get-costs-items cli command
description: Get itemized costs for the organization. Currently unavailable in self-hosted ECE. Behaviour flags: --dry-run — validate all inputs and exit without performing...
url: https://www.elastic.co/elastic/docs-builder/docs/4075/reference/elastic-cli/cli/cloud/billing/get-costs-items
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# cloud billing get-costs-items cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic cloud billing get-costs-items \
  --organization-id <organization-id> \
  [options]
```

Get itemized costs for the organization. Currently unavailable in self-hosted ECE.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--organization-id string required">
    Identifier for the organization
  </definition>
  <definition term="--from string">
    A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
  </definition>
  <definition term="--to string">
    A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>