# spectral-cli を Homebrew, dnf, winget でインストール

spectral-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install neochat
```

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

### Windows

- winget (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:spectral-cli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 6.16.2
- **ソース概要:** JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x
- **ホームページ:** <https://stoplight.io/open-source/spectral>
- **最終更新:** 2026-07-21T07:03:13Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- spectral (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 6.16.2
## プロジェクトの歴史と使われ方

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

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

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


## セキュリティノート

spectral-cli に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## 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
## 他のパッケージマネージャ記録

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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)


## ソース

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