> 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-flexi/image/snapshot-storage.md).

# snapshot-storage

Create a snapshot of a storage instance and save it as a flexi image. This command allows you to capture the state of a storage instance at a specific point in time and use it as a flexi image for future deployments.

## Usage

```
cldkctl flexi image snapshot-storage [flags]
```

## Aliases

```
snapshot-storage, snapshot-storage
```

## Steps

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

1. Run the following command in your terminal:

```
cldkctl flexi image snapshot-storage 
```

2. Select the **billing type**.

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

3. Select the **storage** for which you want to create the snapshot.
4. Enter the **snapshot name**.
5. Confirm the snapshot creation by selecting **Confirm**.

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

6. Once completed successfully, the terminal displays the success message.

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

## Flags

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

<table><thead><tr><th width="187.33331298828125">Flag</th><th>Shorthand</th><th>Description</th></tr></thead><tbody><tr><td>--help</td><td>-h</td><td>Help for the snapshot-storage command.</td></tr></tbody></table>
