﻿---
title: stack es cat snapshots cli command
description: Get snapshot information. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/480/cli/stack/es/cat/snapshots
---

# stack es cat snapshots cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es cat snapshots [options]
```

Get snapshot information.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--repository string">
    A comma-separated list of snapshot repositories used to limit the request. Accepts wildcard expressions. `_all` returns all repositories. If any repository fails during the request, Elasticsearch returns an error.
    **Repeatable:** pass `--repository` multiple times to supply more than one value
  </definition>
  <definition term="--[no-]ignore-unavailable">
    If `true`, the response does not include information from unavailable snapshots.
  </definition>
  <definition term="--h string">
    A comma-separated list of columns names to display. It supports simple wildcards.
    **Repeatable:** pass `--h` multiple times to supply more than one value
  </definition>
  <definition term="--s string">
    List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting `:asc` or `:desc` as a suffix to the column name.
    **Repeatable:** pass `--s` multiple times to supply more than one value
  </definition>
  <definition term="--master-timeout string">
    Period to wait for a connection to the master node.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>