﻿---
title: stack kb slo find-slos-op cli command
description: Get a paginated list of SLOs Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4083/reference/elastic-cli/cli/stack/kb/slo/find-slos-op
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

```bash
elastic stack kb slo find-slos-op --space-id <space-id> [options]
```

Get a paginated list of SLOs
**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="--kql-query string">
    A valid kql query to filter the SLO with
  </definition>
  <definition term="--size number">
    The page size to use for cursor-based pagination, must be greater or equal than 1
  </definition>
  <definition term="--search-after string[]">
    The cursor to use for fetching the results from, when using a cursor-base pagination.
    **Repeatable:** pass `--search-after` multiple times to supply more than one value
  </definition>
  <definition term="--page number">
    The page to use for pagination, must be greater or equal than 1
  </definition>
  <definition term="--per-page number">
    Number of SLOs returned by page
  </definition>
  <definition term="--sort-by enum">
    Sort by field
    **Values:** sli_value, status, error_budget_consumed, error_budget_remaining
  </definition>
  <definition term="--sort-direction enum">
    Sort order
    **Values:** asc, desc
  </definition>
  <definition term="--hide-stale">
    Hide stale SLOs from the list as defined by stale SLO threshold in SLO settings
  </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>