spectral-cli
« Back to VersTracker
Description:
JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x
Type: Formula  |  Latest Version: 6.15.0@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  @stoplightio  |  formulae.brew.sh
Category: Developer tools
Tags: openapi asyncapi linter json yaml api
Install: brew install spectral-cli
About:
Spectral CLI is a powerful, pluggable linter for JSON and YAML documents. It excels at validating OpenAPI (v3.1, v3.0, v2.0) and AsyncAPI (v2.x) specifications, ensuring they adhere to best practices and custom rules. Its core value is providing fast, customizable API style enforcement directly in the developer workflow.
Key Features:
  • Supports OpenAPI and AsyncAPI specifications
  • Highly extensible with custom rulesets
  • Fast, command-line interface for automation
  • Built-in set of best-practice rules
Use Cases:
  • Validating OpenAPI/AsyncAPI definitions for correctness
  • Enforcing organizational API style guides
  • Integrating API linting into CI/CD pipelines
Alternatives:
  • vacuum – A fast OpenAPI linter written in Go, often used for performance-critical tasks.
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 6.15.0 0 VERSION_BUMP 35a273a6
Nov 19, 2024 1:46pm 0 VERSION_BUMP 8feee619
Nov 19, 2024 1:12pm 0 VERSION_BUMP 833bfdae
Nov 13, 2024 9:55pm 0 VERSION_BUMP 768670cb
Sep 21, 2024 9:49am 0 VERSION_BUMP 0ff71d23
Sep 13, 2024 1:03pm 0 VERSION_BUMP b15ebeb8
Sep 12, 2024 11:17pm 0 VERSION_BUMP b1bc1336
Sep 12, 2024 9:01pm 0 VERSION_BUMP 5459dda6