﻿---
title: stack kb security-lists-api create-list cli command
description: Create a value list Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/security-lists-api/create-list
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

```bash
elastic stack kb security-lists-api create-list \
  --description <description> \
  --name <name> \
  --type <type> \
  [options]
```

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

## Options

<definitions>
  <definition term="--description string required">
  </definition>
  <definition term="--name string required">
  </definition>
  <definition term="--type enum required">
    **Values:** binary, boolean, byte, date, date_nanos, date_range, double, double_range, float, float_range, geo_point, geo_shape, half_float, integer, integer_range, ip, ip_range, keyword, long, long_range, shape, short, text
  </definition>
  <definition term="--id string">
  </definition>
  <definition term="--meta string">
  </definition>
  <definition term="--version number">
  </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>