Skip to main content

Validate

expanso-cli job validate

Validate a job specification

Synopsis

Validate job specification syntax and structure.

By default, performs both client-side and server-side validation. Client-side validation checks syntax and structure (works offline). Server-side validation performs comprehensive checks against the cluster.

Use --offline to skip server-side validation (useful for CI or when server is unavailable).

expanso-cli job validate FILE [flags]

Examples

  # Validate a job file (client + server)
expanso-cli job validate job.yaml

# Validate from stdin
cat job.yaml | expanso-cli job validate -

# Validate offline (client-side only)
expanso-cli job validate job.yaml --offline

Options

  -h, --help      help for validate
--offline Skip server-side validation (client-side only)

Options inherited from parent commands

      --auth-token string   API bearer authentication token
-e, --endpoint string API endpoint URL
-k, --insecure Skip TLS certificate verification
-p, --profile string Profile to use for configuration
--timeout string Request timeout duration
-v, --verbose Enable verbose logging

SEE ALSO

Auto generated by spf13/cobra on 19-Nov-2025