# Installer spectral-cli avec Homebrew, dnf, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de spectral-cli pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install neochat
```

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

### Windows

- winget (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:spectral-cli
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/spectral-cli>
- **Version:** 6.16.3
- **Résumé source:** JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x
- **Page d'accueil:** <https://stoplight.io/open-source/spectral>
- **Docs amont:** <https://stoplight.io/open-source/spectral>
- **Licence:** MIT
- **Archive source:** <https://registry.npmjs.org/@stoplight/spectral-cli/-/spectral-cli-6.16.2.tgz>
- **Dernière mise à jour:** 2026-08-04T15:38:30Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- spectral (cli)
- spectral (alias)

## Dépendances

- node

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur all

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 6.16.3
- gestionnaire mis à jour: 2026-08-04
- données locales: OK
- dépôt amont: https://stoplight.io/open-source/spectral
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour spectral-cli. Les métadonnées de paquet restent publiées ici afin que la couverture future dispose d'une URL stable.



## 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
## Détails de la base source

- **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

## Autres enregistrements de gestionnaires de paquets

- dnf - neochat - 26.07.90-1.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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## Liens liés

- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/fr/brew/node/) - Runtime dependency declared by Homebrew.
- [yq](https://pkg.so/fr/brew/yq/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [python-yq](https://pkg.so/fr/brew/python-yq/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [libfyaml](https://pkg.so/fr/brew/libfyaml/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [dasel](https://pkg.so/fr/brew/dasel/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [yj](https://pkg.so/fr/brew/yj/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [redocly-cli](https://pkg.so/fr/brew/redocly-cli/) - Shares pkgdb curated category or tags: api-linting, cli, developer-tools, openapi.
- [dyff](https://pkg.so/fr/brew/dyff/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [otree](https://pkg.so/fr/brew/otree/) - Shares pkgdb curated category or tags: cli, developer-tools, json, yaml.
- [prism-cli](https://pkg.so/fr/brew/prism-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, cli, developer, developer-tools, node.
- [asyncapi](https://pkg.so/fr/brew/asyncapi/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, asyncapi, cli, developer, developer-tools.

## Combined YAML source

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


## Sources

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