> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotglue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Snapshots

> Download and deploy snapshots for a tenant

## Overview

The snapshots commands allow you to deploy and download snapshots across different environments and tenants.

## Commands

### deploy

Deploy snapshots to a target environment and tenant.

#### Usage

```bash theme={null}
hotglue snapshots deploy --sourceFolder <path>
```

#### Options

| Option           | Type   | Required | Default   | Description                                              |
| ---------------- | ------ | -------- | --------- | -------------------------------------------------------- |
| `--sourceFolder` | string | Yes      | -         | Path to the source folder containing snapshots to deploy |
| `--tenant`       | string | Yes      | `default` | Target tenant for deployment                             |

#### Examples

```bash theme={null}
# Deploy snapshots to default tenant
hotglue snapshots deploy --sourceFolder ./snapshots

# Deploy snapshots to specific tenant
hotglue snapshots deploy --sourceFolder ./snapshots --tenant abc123
```

***

### download

Download snapshots from a source environment or tenant.

#### Usage

```bash theme={null}
hotglue snapshots download --downloadTo <path> --overwrite <boolean>
```

#### Options

| Option         | Type    | Required | Default   | Description                                            |
| -------------- | ------- | -------- | --------- | ------------------------------------------------------ |
| `--downloadTo` | string  | Yes      | -         | Destination path where snapshots will be downloaded    |
| `--overwrite`  | boolean | No       | -         | Whether to overwrite existing files at the destination |
| `--tenant`     | string  | Yes      | `default` | Source tenant to download snapshots from               |

#### Examples

```bash theme={null}
# Download snapshots to local directory
hotglue snapshots download --downloadTo ./local-snapshots --overwrite true

# Download snapshots from specific tenant
hotglue snapshots download --downloadTo ./backup --overwrite false --tenant abc1234
```
