﻿---
title: stack kb security-lists-api find-lists cli command
description: Get value lists 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/security-lists-api/find-lists
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-lists-api find-lists cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-lists-api find-lists [options]
```

Get value lists
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--page number">
    The page number to return.
  </definition>
  <definition term="--per-page number">
    The number of value lists to return per page.
  </definition>
  <definition term="--sort-field string">
    Determines which field is used to sort the results.
  </definition>
  <definition term="--sort-order enum">
    Determines the sort order, which can be `desc` or `asc`
    **Values:** desc, asc
  </definition>
  <definition term="--cursor string">
    Returns the lists that come after the last lists returned in the previous call (use the `cursor` value returned in the previous call). This parameter uses the `tie_breaker_id` field to ensure all lists are sorted and returned correctly.
  </definition>
  <definition term="--filter string">
    Filters the returned results according to the value of the specified field,
    using the <field name>:<field value> syntax.
  </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>