> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-billing/history.md).

# history

The billing history command retrieves the billing history for a project, displaying past charge records within a specified date range. It also provides a subcommand for viewing detailed billing history for a specific date.

## Usage

```
cldkctl billing history [project id] [flags]
```

```
cldkctl billing history [command]
```

## Available Commands

| Command | Description                                           |
| ------- | ----------------------------------------------------- |
| detail  | View detailed billing history for a specific service. |

1. Run the following command in your terminal:

Follow the steps below to run and view the result of this command:

```
cldkctl billing history
```

or specify a date range using flags:

```
cldkctl billing history --start --end
```

2. The command will display the billing history table for the selected project.

<figure><img src="/files/p8dDiZvQmVFyEO59ipiY" alt=""><figcaption></figcaption></figure>

| Command      | Description                                                                 |
| ------------ | --------------------------------------------------------------------------- |
| Project Name | The name of the project associated with the billing records.                |
| Date         | The date when the billing was recorded (displayed in DD Month YYYY format). |
| Billed       | The total billed amount for the project on that date (in IDR).              |

## Flags

{% hint style="info" %}
This command supports [global flags. ](/cloudeka-api-list/global-flags.md)Refer to the Global Flags section for details
{% endhint %}

| Flag           | Description                                                          |
| -------------- | -------------------------------------------------------------------- |
| --start string | Specify the start date for the billing history (format: YYYY-MM-DD). |
| --end string   | Specify the end date for the billing history (format: YYYY-MM-DD).   |
| -h, --help     | Help for the billing history subcommand.                             |
