﻿---
title: stack kb workflows get-workflows cli command
description: Get workflows 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/workflows/get-workflows
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb workflows get-workflows cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb workflows get-workflows [options]
```

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

## Options

<definitions>
  <definition term="--query string">
    Free-text search query.
  </definition>
  <definition term="--size number">
    Number of results per page.
  </definition>
  <definition term="--page number">
    Page number.
  </definition>
  <definition term="--enabled string[]">
    Filter by enabled state.
    **Repeatable:** pass `--enabled` multiple times to supply more than one value
  </definition>
  <definition term="--created-by string[]">
    Filter by creator.
    **Repeatable:** pass `--created-by` multiple times to supply more than one value
  </definition>
  <definition term="--tags string[]">
    Filter by tags.
    **Repeatable:** pass `--tags` multiple times to supply more than one value
  </definition>
  <definition term="--managed enum">
    Filter by managed status. Defaults to "unmanaged".
    **Values:** all, managed, unmanaged
  </definition>
  <definition term="--visibility-context string[]">
    When managed workflows are included, only return managed workflows visible in these contexts.
    **Repeatable:** pass `--visibility-context` multiple times to supply more than one value
  </definition>
  <definition term="--sort-field enum">
    Field to sort by.
    **Values:** name, enabled
  </definition>
  <definition term="--sort-order enum">
    Sort direction.
    **Values:** asc, desc
  </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>