﻿---
title: stack kb significantevents put-streams-name-queries-queryid cli command
description: Upsert a query to a stream Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4118/reference/elastic-cli/cli/stack/kb/significantevents/put-streams-name-queries-queryid
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb significantevents put-streams-name-queries-queryid cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb significantevents put-streams-name-queries-queryid \
  --name <name> \
  --query-id <query-id> \
  --esql <esql> \
  --title <title> \
  [options]
```

Upsert a query to a stream
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--name string required">
    The name of the stream.
  </definition>
  <definition term="--query-id string required">
    The identifier of the query.
  </definition>
  <definition term="--esql string required">
  </definition>
  <definition term="--title string required">
    A non-empty string.
  </definition>
  <definition term="--description string">
  </definition>
  <definition term="--evidence string[]">
    **Repeatable:** pass `--evidence` multiple times to supply more than one value
  </definition>
  <definition term="--expires-at string">
  </definition>
  <definition term="--severity-score number">
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

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