# sloth-cli を Homebrew, MacPorts, Nix でインストール

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

## インストール

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

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

### macOS

- Homebrew (100%):

```sh
brew install sloth-cli
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sloth
```

  証拠: MacPorts ports tree: aqua/sloth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sloth
```

  証拠: nixpkgs package indexes: pkgs/by-name/sl/sloth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:sloth-cli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.16.0
- **ソース概要:** Prometheus SLO generator
- **ホームページ:** <https://sloth.dev/>
- **リポジトリ:** <https://github.com/slok/sloth>
- **最終更新:** 2026-07-26T04:03:41+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- sloth (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

Sloth is a Prometheus SLO generator distributed as the `sloth` CLI by the Homebrew `sloth-cli` formula. It turns service-level-objective specifications into Prometheus recording and alerting rules, including multi-window, multi-burn-rate alerting.

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

The official repository describes Sloth as an easy way to generate Prometheus SLOs from a simple SLO spec. The GitHub repository was created in 2021, and the first GitHub release listed by the official API is v0.1.0 published on 2021-05-05.

The changelog shows the project growing from a focused CLI into a broader SLO toolchain: v0.10.0 added directory discovery for generated SLO files, v0.13.0 migrated rule generation to plugins, v0.15.0 exposed SLO generation as a Go library, and v0.16.0 added a server command and UI work.

### 採用の歴史

Sloth fits the GitOps and Kubernetes observability audience: the official CLI docs say the generate mode only needs the CLI, making it useful for CI, scripts, and toolboxes.

Homebrew, MacPorts, and Nix package mappings in the input facts show adoption across common developer package managers, and the Homebrew formula API reported 545 installs-on-request over 365 days for the batch's lookup window.

### 使われ方

The documented quick start is `sloth generate -i ./examples/getting-started.yml`, producing Prometheus rules from an SLO specification.

The official CLI usage page says `generate` supports multiple spec types, including the default Prometheus rules output and Kubernetes Prometheus-operator rules output.

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

Sloth matters to package-manager users because it packages SRE practice into a single CLI binary: SLO definitions can live in repositories and CI systems rather than only inside dashboards or vendor SaaS.

It is also a modern example of observability tooling being shipped through developer package managers so teams can pin, upgrade, and run it in local and automated workflows.

### タイムライン

- 2021: GitHub repository created.
- 2021: v0.1.0 released on GitHub.
- 2022: v0.10.0 added directory discovery for CLI generation.
- 2025: v0.15.0 exposed Sloth SLO generation as a Go library.
- 2026: v0.16.0 added server/UI work and Kubernetes transformer plugins.

### Related projects

- Sloth is built around Prometheus, Prometheus Operator, Kubernetes, OpenSLO, and Google's SRE multi-window multi-burn-rate alerting guidance.
- The project also points users to `slok/sloth-common-sli-plugins` for common SLI plugins.

### ソース

- <https://formulae.brew.sh/api/formula/sloth-cli.json>
- <https://github.com/slok/sloth>
- <https://raw.githubusercontent.com/slok/sloth/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/slok/sloth/main/README.md>
- <https://sloth.dev/introduction>
- <https://sloth.dev/usage/cli>
- source_facts.repo


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

- MacPorts - sloth: installed executable or alias match | MacPorts ports tree: aqua/sloth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - sloth: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/sl/sloth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

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