# CLI_VALIDATION_ERROR

- Surface: CLI
- Exit code: 1
- Details: `{ field: string, reason: string }`

## Cause

The invocation parsed but its input failed contract validation before any request was sent. `splitch flags create` without a variant catalog, `--variants` without `--key`, or an unrecognized `SPLITCH_PLATFORM_TARGET` all land here.

## Fix

The error names the offending field and reason. Fix the field and retry. Validation runs locally so a malformed create never reaches the control plane and never half-writes.

## Related

- [CLI_USAGE_INVALID](https://splitch.dev/docs/error/CLI_USAGE_INVALID)
- [VALIDATION_ERROR](https://splitch.dev/docs/error/VALIDATION_ERROR)

Source: https://splitch.dev/docs/error/CLI_VALIDATION_ERROR