# 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/spectral-cli>
- **バージョン:** 6.16.3
- **ソース概要:** JSON/YAML linter and support OpenAPI v3.1/v3.0/v2.0, and AsyncAPI v2.x
- **ホームページ:** <https://stoplight.io/open-source/spectral>
- **上流ドキュメント:** <https://stoplight.io/open-source/spectral>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://registry.npmjs.org/@stoplight/spectral-cli/-/spectral-cli-6.16.2.tgz>
- **最終更新:** 2026-08-04T15:38:30Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- spectral (cli)
- spectral (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 6.16.3
- マネージャ更新日: 2026-08-04
- ローカルデータ: OK
- 上流リポジトリ: https://stoplight.io/open-source/spectral
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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 を使えるよう、パッケージメタデータはここに公開されています。



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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

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


## ソース

- 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
