# 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>


---

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