﻿---
title: stack kb security-entity-store get-security-entity-store-entities cli command
description: List entities 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-entity-store/get-security-entity-store-entities
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-entity-store get-security-entity-store-entities cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-entity-store get-security-entity-store-entities \
  [options]
```

List entities
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--filter string">
    A Kibana Query Language (KQL) filter for the search-after mode.
  </definition>
  <definition term="--size number">
    Number of entities to return in search-after mode.
  </definition>
  <definition term="--search-after string">
    JSON-encoded search_after value for cursor-based pagination.
  </definition>
  <definition term="--source string[]">
    Fields to include in the response source.
    **Repeatable:** pass `--source` multiple times to supply more than one value
  </definition>
  <definition term="--fields string[]">
    Fields to include in the response.
    **Repeatable:** pass `--fields` multiple times to supply more than one value
  </definition>
  <definition term="--sort-field string">
    Field to sort results by in page mode.
  </definition>
  <definition term="--sort-order enum">
    Sort order in page mode.
    **Values:** asc, desc
  </definition>
  <definition term="--page number">
    Page number to return (1-indexed) in page mode.
  </definition>
  <definition term="--per-page number">
    Number of entities per page in page mode.
  </definition>
  <definition term="--filter-query string">
    An Elasticsearch query string to filter entities in page mode.
  </definition>
  <definition term="--entity-types string[]">
    Entity types to include in the results.
    **Repeatable:** pass `--entity-types` multiple times to supply more than one value
  </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>