> 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-ticket/attachment-add.md).

# attachment-add

The cldkctl ticket attachment-add command allows you to upload and associate a file with a specific ticket. This is useful for adding screenshots, logs, or other supporting documents related to your issue or request.

## Usage

```
cldkctl ticket attachment-add [ticket id] [flags]
```

## Steps

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

1. Run the following command and replace \<ticket\_id> with your actual ticket ID:

```
cldkctl ticket attachment-add <ticket_id>
```

2. You will be prompted to enter the file path of the document or image you want to upload.
3. Provide the full path to the file you want to attach. This field is required — the command will not proceed if left blank.
4. Press Enter to submit.

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

## Flags

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

<table><thead><tr><th width="199.33331298828125">Flag</th><th>Description</th></tr></thead><tbody><tr><td>-f, --file string</td><td>Path to the file to be attached (required).</td></tr><tr><td>-h, --help</td><td>Help for the attachment-add command.</td></tr></tbody></table>
