﻿---
title: stack kb security-entity-store post-security-entity-store-resolution-link cli command
description: Link entities Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/stack/kb/security-entity-store/post-security-entity-store-resolution-link
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-entity-store post-security-entity-store-resolution-link cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-entity-store post-security-entity-store-resolution-link \
  --entity-ids <entity-ids> \
  --target-id <target-id> \
  [options]
```

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

## Options

<definitions>
  <definition term="--entity-ids string[] required">
    Entity identifiers to link to the target entity. Minimum 1, maximum 1000.
    **Repeatable:** pass `--entity-ids` multiple times to supply more than one value
  </definition>
  <definition term="--target-id string required">
    The entity identifier to resolve the linked entities to.
  </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>