﻿---
title: stack kb slo create-slo-op cli command
description: Create an SLO Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/573/cli/stack/kb/slo/create-slo-op
---

# stack kb slo create-slo-op cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb slo create-slo-op \
  --space-id <space-id> \
  --budgeting-method <budgeting-method> \
  --description <description> \
  --indicator <indicator> \
  --name <name> \
  --objective <objective> \
  --time-window <time-window> \
  [options]
```

Create an SLO
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--space-id string required">
    An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
  </definition>
  <definition term="--budgeting-method enum required">
    **Values:** occurrences, timeslices
  </definition>
  <definition term="--description string required">
    A description for the SLO.
  </definition>
  <definition term="--indicator string required">
  </definition>
  <definition term="--name string required">
    A name for the SLO.
  </definition>
  <definition term="--objective string required">
  </definition>
  <definition term="--time-window string required">
  </definition>
  <definition term="--artifacts string">
  </definition>
  <definition term="--group-by string">
    **Repeatable:** pass `--group-by` multiple times to supply more than one value
  </definition>
  <definition term="--id string">
    A optional and unique identifier for the SLO. Must be between 8 and 48 chars
  </definition>
  <definition term="--settings string">
  </definition>
  <definition term="--tags string[]">
    List of tags
  </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>