---
title: "ktm tests validate"
description: "Validate a test JSON file without creating it"
sidebarTitle: "validate"
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 */}

Validate a test JSON file without creating it

## Usage

```bash
ktm tests validate [flags]
```

## Examples

```bash
# Validate a test file
ktm tests validate --from-file test.json

# Pipeline: generate, validate, create
ktm tests template ETH_HTTP_API > test.json
# ... edit test.json ...
ktm tests validate --from-file test.json
ktm tests create --from-file test.json --product my-operator~my-product
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--from-file` | string |  | Path to JSON file to validate (required) |

## Details

Dry-run validate a test JSON payload without hitting the API.

Checks: action types, owner presence, required command fields, variables structure.
Returns structured errors and warnings with JSON paths.

## Related

- [`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>
