# sloth-cli mit Homebrew, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für sloth-cli in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

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

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sloth
```

  Evidenz: 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
```

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

## Paketfakten

- **Paketschlüssel:** brew:sloth-cli
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/sloth-cli>
- **Version:** 0.16.0
- **Quellzusammenfassung:** Prometheus SLO generator
- **Homepage:** <https://sloth.dev/>
- **Repository:** <https://github.com/slok/sloth>
- **Upstream-Dokumentation:** <https://sloth.dev/>
- **Lizenz:** Apache-2.0
- **Quellarchiv:** <https://github.com/slok/sloth/archive/refs/tags/v0.16.0.tar.gz>
- **Zuletzt aktualisiert:** 2026-07-26T04:03:41+02:00
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- sloth (cli)
- sloth (Alias)

## Build-Abhängigkeiten

- go

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 0.16.0
- Manager aktualisiert: 2026-07-26
- lokale Daten: OK
- Upstream-Repository: https://github.com/slok/sloth
- neueste erkannte Version: v0.16.0 (aktuell)
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- 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


## Verwandte Links

- [Cloud CLI packages](https://pkg.so/de/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/de/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/de/brew/go/) - Build dependency declared by Homebrew.
- [mimirtool](https://pkg.so/de/brew/mimirtool/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability, prometheus.
- [linkerd](https://pkg.so/de/brew/linkerd/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes, observability.
- [kubespy](https://pkg.so/de/brew/kubespy/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes, observability.
- [kubernetes-cli](https://pkg.so/de/brew/kubernetes-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [helm](https://pkg.so/de/brew/helm/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [colima](https://pkg.so/de/brew/colima/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [k9s](https://pkg.so/de/brew/k9s/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [kustomize](https://pkg.so/de/brew/kustomize/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.

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


## Quellen

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