﻿---
title: stack kb workflows get-workflows-schema cli command
description: Get workflow JSON schema Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/workflows/get-workflows-schema
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

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

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

## Options

<definitions>
  <definition term="--loose required">
    When true, returns a permissive schema that allows additional properties. When false, returns a strict schema for full validation.
  </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>