﻿---
title: stack kb maintenance-window get-maintenance-window-find cli command
description: Search for a maintenance window. 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/maintenance-window/get-maintenance-window-find
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb maintenance-window get-maintenance-window-find cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb maintenance-window get-maintenance-window-find [options]
```

Search for a maintenance window.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--title string">
    The title of the maintenance window.
  </definition>
  <definition term="--created-by string">
    The user who created the maintenance window.
  </definition>
  <definition term="--status string[]">
    The status of the maintenance window. It can be "running", "upcoming", "finished", "archived", or "disabled".
    **Repeatable:** pass `--status` multiple times to supply more than one value
  </definition>
  <definition term="--page number">
    The page number to return.
  </definition>
  <definition term="--per-page number">
    The number of maintenance windows to return per page.
  </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>