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

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

```bash
elastic stack kb security-lists-api find-list-items \
  --list-id <list-id> \
  [options]
```

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

## Options

<definitions>
  <definition term="--list-id string required">
    Parent value list's `id` to page through items for.
  </definition>
  <definition term="--page number">
    The page number to return.
  </definition>
  <definition term="--per-page number">
    The number of list items 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">
    Opaque cursor returned in a previous response; pass it to continue listing from the next page. Omit on the first request.
  </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>