---
title: "ktm reusables get"
description: "Get a reusable's full definition (rejects non-reusable test ids)"
sidebarTitle: "get"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Get a reusable's full definition (rejects non-reusable test ids)

## Usage

```bash
ktm reusables get <id> [flags]
```

## Examples

```bash
ktm reusables get 117
ktm reusables get 117 -o json | jq '{id, name, kind, reused_by}'
```

## Arguments

| Argument | Required |
| --- | --- |
| `id` | Yes |

## Details

Fetches the full test definition for a reusable (kind=2). If the id
points to a regular test (kind=1), the command errors and suggests
'ktm tests inspect' instead. Use this to view actions, variables, and embedded
reusables before editing.

## Related

- [`ktm reusables`](/cli/commands/reusables)
- [`ktm tests`](/cli/commands/tests)

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
