# 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/Bu8vGUxv1GRAGRHPATkT" 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.                             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-billing/history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
