﻿---
title: stack kb cases get-case-field-definitions-default-space cli command
description: Get all field definitions Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4302/reference/elastic-cli/cli/stack/kb/cases/get-case-field-definitions-default-space
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb cases get-case-field-definitions-default-space cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb cases get-case-field-definitions-default-space \
  --owner <owner> \
  [options]
```

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

## Options

<definitions>
  <definition term="--owner string required">
    The application that owns the field definitions (for example `cases`, `observability`, or `securitySolution`). Required.
    **Repeatable:** pass `--owner` multiple times to supply more than one value
  </definition>
  <definition term="--is-global">
    When true, returns only global field definitions (rendered on every case). When false, returns all definitions. Omit to return all.
  </definition>
  <definition term="--page number">
    The page number to return.
  </definition>
  <definition term="--per-page number">
    The number of items to return. Limited to 100 items.
  </definition>
  <definition term="--sort-field enum">
    The field to sort by. When omitted, results are sorted by `fieldDefinitionId` ascending and `sortOrder` is ignored.
    **Values:** name, owner, isGlobal, displayOrder
  </definition>
  <definition term="--sort-order enum">
    Determines the sort order.
    **Values:** asc, desc
  </definition>
  <definition term="--search string">
    A case-insensitive substring to match against each definition's `name` and `description` fields. Definitions where neither field contains the substring are excluded.
  </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>
  <definition term="--no-validate">
    skip input validation and send the request as-is
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--output-fields string">
    comma-separated list of fields to include in output (dot-notation supported)
  </definition>
  <definition term="--output-template string">
    Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
  </definition>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>