﻿---
title: stack kb security-timeline-api install-prepacked-timelines cli command
description: Install prepackaged Timelines 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-timeline-api/install-prepacked-timelines
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-timeline-api install-prepacked-timelines cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-timeline-api install-prepacked-timelines \
  --prepackaged-timelines <prepackaged-timelines> \
  --timelines-to-install <timelines-to-install> \
  --timelines-to-update <timelines-to-update> \
  [options]
```

Install prepackaged Timelines
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--prepackaged-timelines string[] required">
    **Repeatable:** pass `--prepackaged-timelines` multiple times to supply more than one value
  </definition>
  <definition term="--timelines-to-install string[] required">
    **Repeatable:** pass `--timelines-to-install` multiple times to supply more than one value
  </definition>
  <definition term="--timelines-to-update string[] required">
    **Repeatable:** pass `--timelines-to-update` 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>