# Install spectral-cli with Homebrew, dnf, winget

JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x. Version 6.16.1 via Homebrew; verified 2026-07-01.

## Install

```sh
sudo av install brew:spectral-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install spectral-cli
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install neochat
```

  Evidence: Fedora Rawhide package metadata: neochat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Stoplight.Spectral -e
```

  Evidence: Windows Package Manager source index: Stoplight.Spectral from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:spectral-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/spectral-cli>
- **Version:** 6.16.1
- **Source summary:** JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x
- **Homepage:** <https://stoplight.io/open-source/spectral>
- **Repository:** <https://github.com/stoplightio/spectral>
- **Upstream docs:** <https://docs.stoplight.io/docs/spectral/ZG9jOjYx-overview>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/@stoplight/spectral-cli/-/spectral-cli-6.16.1.tgz>
- **Last updated:** 2026-07-01T15:08:43Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- spectral (cli)
- spectral (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.16.1
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://stoplight.io/open-source/spectral
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Spectral CLI is Stoplight's command-line linter for JSON and YAML documents, especially OpenAPI, AsyncAPI, Arazzo, and custom API style-guide rulesets.

### Project history

The official repository describes Spectral as a flexible JSON/YAML linter for creating automated style guides, with ready-to-use rulesets for OpenAPI, AsyncAPI, and Arazzo. The repository was created in 2018, and the README credits Mike Ralphson for kicking off the Spectral CLI.

### Adoption history

Spectral's adoption is visible in its official README: installation through npm or yarn, editor and CI integrations, a GitHub Action, Stoplight Studio support, and examples of real-world rulesets from API programs and companies. GitHub API metadata shows thousands of stars and ongoing releases through 2026.

### How it is used

Users typically create a local .spectral.yaml ruleset, extend built-in rulesets such as spectral:oas or spectral:asyncapi, and run spectral lint against API descriptions. The CLI can also use custom rulesets supplied from a different path.

### Why package nerds care

Spectral is package-manager-relevant because it made API governance scriptable: a style guide can live as a versioned ruleset, be installed by npm, Homebrew, or platform packages, and run in editors, git hooks, and CI without a proprietary service.

### Timeline

- 2018: The official GitHub repository was created on August 15.
- 2021: Official discussions show users installing pinned CLI versions such as 5.9.2 from GitHub releases.
- 2025: Release v6.15.0 was published on April 22.
- 2026: @stoplight/spectral-cli-6.16.1 was published on June 30.

### Related projects

- Related projects and integrations include @stoplight/spectral-cli, spectral-action, Stoplight Studio, VS Code Spectral Extension, API Stylebook, and Stoplight's Spectral ruleset repositories.

### Sources

- <https://api.github.com/repos/stoplightio/spectral>
- <https://api.github.com/repos/stoplightio/spectral/releases?per_page=10>
- <https://docs.stoplight.io/docs/spectral/ZG9jOjYx-overview>
- <https://github.com/stoplightio/spectral#readme>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for spectral-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .spectral.yaml, .spectral.yml, .spectral.json, .spectral.js
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** spectral-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- dnf - neochat - 26.04.2-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: neochat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Client for matrix, the decentralized communication protocol | https://invent.kde.org/network/neochat
- winget - Stoplight.Spectral: installed executable or alias match | Windows Package Manager source index: Stoplight.Spectral from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [redocly-cli](https://www.automicvault.com/pkg/brew/redocly-cli/) - Shares av.db curated category or tags: api, api-linting, cli, developer-tools, openapi.
- [fern-api](https://www.automicvault.com/pkg/brew/fern-api/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [kiota](https://www.automicvault.com/pkg/brew/kiota/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [oasdiff](https://www.automicvault.com/pkg/brew/oasdiff/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [prism-cli](https://www.automicvault.com/pkg/brew/prism-cli/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [swag](https://www.automicvault.com/pkg/brew/swag/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [swagger-codegen](https://www.automicvault.com/pkg/brew/swagger-codegen/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.
- [swagger2markup-cli](https://www.automicvault.com/pkg/brew/swagger2markup-cli/) - Shares av.db curated category or tags: api, cli, developer-tools, openapi.

## Combined YAML source

View the package source record on GitHub. [combined/spectral-cli.yml](https://github.com/automic-vault/db/blob/main/combined/spectral-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
