﻿---
title: cloud billing get-costs-charts-by-deployment cli command
description: Get charts by deployment. Currently unavailable in self-hosted ECE. Behaviour flags: --dry-run — validate all inputs and exit without performing any action...
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/cloud/billing/get-costs-charts-by-deployment
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# cloud billing get-costs-charts-by-deployment cli command
<cli-modifiers>
</cli-modifiers>

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

Get charts by deployment. 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="--deployment-id string required">
    Id of a Deployment
  </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="--bucketing-strategy string">
    The desired bucketing strategy for the charts. Defaults to `daily`.
  </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>