aix command validate

aix command validate

Validate a slash command file

Synopsis

Validate a slash command definition file against the command specification.

Checks for required fields, valid syntax, and common issues. Use –strict for additional checks beyond the basic requirements.

Exit codes: 0 - Valid command 1 - Invalid command or validation errors

aix command validate <path> [flags]

Examples

  # Validate a command file
  aix command validate ./review.md

  # Strict validation
  aix command validate ./review.md --strict

  # JSON output for CI/CD
  aix command validate ./review.md --json

  See Also:
    aix command install  - Install the command
    aix command edit     - Edit the command definition
    aix command show     - Show command details

Options

  -h, --help     help for validate
      --json     output results as JSON
      --strict   enable strict validation mode

Options inherited from parent commands

      --log-file string     write logs to file in JSON format
      --log-format string   log format: text, json (default "text")
  -p, --platform strings    target platform(s): claude, opencode (default: all detected)
  -q, --quiet               suppress non-error output
  -v, --verbose count       increase verbosity level (e.g., -v, -vv)

SEE ALSO

Auto generated by spf13/cobra on 24-Jan-2026