# Install sloth-cli with Homebrew, MacPorts, Nix

Prometheus SLO generator. Version 0.16.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sloth
```

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

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

## Package facts

- **Package key:** brew:sloth-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sloth-cli>
- **Version:** 0.16.0
- **Source summary:** Prometheus SLO generator
- **Homepage:** <https://sloth.dev/>
- **Repository:** <https://github.com/slok/sloth>
- **Upstream docs:** <https://sloth.dev/introduction>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/slok/sloth/archive/refs/tags/v0.16.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sloth (cli)
- sloth (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.16.0
- Local data: ok
- Upstream repository: https://github.com/slok/sloth
- Upstream latest detected: v0.16.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [mimirtool](https://www.automicvault.com/pkg/brew/mimirtool/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability, prometheus.
- [grizzly](https://www.automicvault.com/pkg/brew/grizzly/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [logcli](https://www.automicvault.com/pkg/brew/logcli/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [mcp-grafana](https://www.automicvault.com/pkg/brew/mcp-grafana/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [newrelic-infra-agent](https://www.automicvault.com/pkg/brew/newrelic-infra-agent/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [swctl](https://www.automicvault.com/pkg/brew/swctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [k8sgpt](https://www.automicvault.com/pkg/brew/k8sgpt/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes, sre.
- [kubespy](https://www.automicvault.com/pkg/brew/kubespy/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes, observability.

## Combined YAML source

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


## Sources

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