# Install logcli

Run LogQL queries against a Loki server. Version 3.7.2 via Homebrew; verified 2026-05-13.

## Install

```sh
sudo av install brew:logcli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install logcli
```

  Evidence: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S logcli
```

  Evidence: Arch Linux sync databases: logcli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install logcli
```

  Evidence: openSUSE Tumbleweed package metadata: logcli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/logcli
```

  Evidence: Scoop official bucket manifest trees: bucket/logcli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:logcli
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/logcli>
- **Version:** 3.7.2
- **Source summary:** Run LogQL queries against a Loki server
- **Homepage:** <https://grafana.com/loki>
- **Repository:** <https://github.com/grafana/loki>
- **Upstream docs:** <https://grafana.com/docs/loki/latest/query/logcli>
- **License:** AGPL-3.0-only
- **Source archive:** <https://github.com/grafana/loki/archive/refs/tags/v3.7.2.tar.gz>
- **Last updated:** 2026-05-13T23:09:09Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- logcli (cli)
- logcli (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-06-10
- Package-manager version: 3.7.2
- Package-manager updated: 2026-05-13
- Local data status: ok
- Upstream repository: https://github.com/grafana/loki
- Upstream latest detected: v3.7.2 (current)

## 安全说明

no executable entrypoint in the package index.

- **Geiger risk:** green / low
- no executable entrypoint in the package index

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** logcli
- **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

- pacman - logcli - 3.6.6-1: normalized package name match | Arch Linux sync databases: logcli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A command-line for loki | https://github.com/grafana/loki
- zypper - logcli - 3.7.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: logcli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | LogCLI tool | https://grafana.com/loki
- Scoop - main/logcli: normalized package name match | Scoop official bucket manifest trees: bucket/logcli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related Links

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [loki](https://www.automicvault.com/zh-hans/pkg/brew/loki/) - Shares the same upstream source repository.
- [mimirtool](https://www.automicvault.com/zh-hans/pkg/brew/mimirtool/) - Shares av.db curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [mcp-grafana](https://www.automicvault.com/zh-hans/pkg/brew/mcp-grafana/) - Shares av.db curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [grizzly](https://www.automicvault.com/zh-hans/pkg/brew/grizzly/) - Shares av.db curated category or tags: cli, cloud-infrastructure, grafana, observability.
- [newrelic-infra-agent](https://www.automicvault.com/zh-hans/pkg/brew/newrelic-infra-agent/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [sloth-cli](https://www.automicvault.com/zh-hans/pkg/brew/sloth-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [swctl](https://www.automicvault.com/zh-hans/pkg/brew/swctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.
- [kubetail](https://www.automicvault.com/zh-hans/pkg/brew/kubetail/) - Shares av.db curated category or tags: cli, cloud-infrastructure, logging.
- [prometheus](https://www.automicvault.com/zh-hans/pkg/brew/prometheus/) - Shares av.db curated category or tags: cli, cloud-infrastructure, observability.

## Sources

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