﻿---
title: stack kb streams get-streams-streamname-attachments cli command
description: Get stream attachments Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/474/cli/stack/kb/streams/get-streams-streamname-attachments
---

# stack kb streams get-streams-streamname-attachments cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb streams get-streams-streamname-attachments \
  --stream-name <stream-name> \
  [options]
```

Get stream attachments
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--stream-name string required">
    The name of the stream
  </definition>
  <definition term="--query string">
    Search query to filter attachments by title
  </definition>
  <definition term="--attachment-types string">
    Filter by attachment types (single value or array)
  </definition>
  <definition term="--tags string">
    Filter by tags (single value or array)
  </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>