﻿---
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://docs-v3-preview.elastic.dev/elastic/cli/pull/525/cli/stack/kb/security-entity-store/post-security-entity-store-resolution-link
---

# 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.
  </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="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>