Skip to content

check

The check command runs both validation and linting together. This is the recommended command for most workflows — it’s more efficient than running validate and lint separately.

Terminal window
graphql check [OPTIONS]
OptionDescription
-f, --format <FORMAT>Output format: human (default), json, github, sarif
-w, --watchWatch for file changes and re-check
--max-warnings <N>Maximum number of warnings allowed before returning a non-zero exit code (exit code 6)
Terminal window
# Run all checks (recommended)
graphql check
# JSON output for CI
graphql check --format json
# Watch mode for development
graphql check --watch
# Specific project
graphql --project backend check
  • 0 — No validation or lint errors
  • 1 — Errors found
  • 6 — Warning threshold exceeded (--max-warnings)