﻿---
title: stack kb links post-links cli command
description: Create a links library item 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/links/post-links
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb links post-links cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb links post-links --links <links> --title <title> [options]
```

Create a links library item
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--links string[] required">
    The list of links to display.
    **Repeatable:** pass `--links` multiple times to supply more than one value
  </definition>
  <definition term="--title string required">
  </definition>
  <definition term="--description string">
  </definition>
  <definition term="--layout enum">
    Whether to display the links in a horizontal or vertical layout.
    **Values:** horizontal, vertical
  </definition>
  <definition term="--tags string[]">
    Tag IDs associated with this library item.
    **Repeatable:** pass `--tags` 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>