﻿---
title: stack kb maintenance-window post-maintenance-window cli command
description: Create a maintenance window. 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/kb/maintenance-window/post-maintenance-window
---

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

```bash
elastic stack kb maintenance-window post-maintenance-window \
  --schedule <schedule> \
  --title <title> \
  [options]
```

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

## Options

<definitions>
  <definition term="--schedule string required">
  </definition>
  <definition term="--title string required">
    The name of the maintenance window. While this name does not have to be unique, a distinctive name can help you identify a specific maintenance window.
  </definition>
  <definition term="--[no-]enabled">
    Whether the current maintenance window is enabled. Disabled maintenance windows do not suppress notifications.
  </definition>
  <definition term="--scope string">
  </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>