# 使用 Homebrew, apt, Nix, zypper 安装 iredis

查看 iredis 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:iredis
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install iredis
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install iredis
```

  证据: Debian stable package indexes: iredis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#iredis
```

  证据: nixpkgs package indexes: pkgs/by-name/ir/iredis/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install iredis
```

  证据: openSUSE Tumbleweed package metadata: iredis from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:iredis
- **软件包管理器:** Homebrew
- **版本:** 1.16.1
- **来源摘要:** Terminal Client for Redis with AutoCompletion and Syntax Highlighting
- **主页:** <https://iredis.xbin.io/>
- **仓库:** <https://github.com/laixintao/iredis>
- **最后更新:** 2026-07-10T11:10:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- iredis (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.16.1
## 项目历史与用法

IRedis is an interactive Redis terminal client that adds completion, syntax highlighting, validation, hints, and friendlier output around the Redis command-line workflow. It belongs to the dbcli-style family of database CLIs that make REPL use safer and more ergonomic than a bare protocol client.

### 项目历史

The first PyPI files for IRedis appeared in August 2019, and the README describes the project as a Redis alternative to `redis-cli` with auto-completion, syntax highlighting, command validation, and safer behavior around dangerous commands such as `KEYS *`. Its documentation emphasizes a Redis-compatible interactive mode while adding history-aware completion, command hints, DSN support, cluster support, URL connections, pager support, and human-friendly rendering.

The changelog shows the project following Redis command evolution closely: releases added support for Redis 6 username authentication, Redis 7 command coverage, cluster MOVED handling, NAT mapping for cluster deployments, Python version changes, and updates to command grammar data.

### 采用历史

IRedis moved beyond pip distribution into Homebrew and Linux distribution packages, and the project README documents pip, pipx, Homebrew, apt, and standalone binary installation paths. A pgcli project post in 2020 announced IRedis joining the dbcli organization, which helps explain its design culture: database shells with completion, hints, and presentation polish.

### 使用方式

Users run `iredis` interactively, connect with Redis host/port flags or Redis URLs, store DSNs in `iredisrc`, and issue Redis commands with validation and completion. The package can also run one-shot commands, handle TLS URLs, support Redis Cluster redirects, and hide passwords during AUTH.

### 为什么软件包爱好者会关心

IRedis is interesting to package people because it is not a server or driver but a nicer operations shell. Packaging has to track Python support, Redis command metadata, optional standalone binary history, and config-file paths, while users expect it to feel like a drop-in friendlier `redis-cli`.

### 时间线

- 2019: First PyPI releases appeared in August.
- 2020: The pgcli project welcomed IRedis to the dbcli organization.
- 2021: Changelog entries added Redis command support and Python compatibility updates.
- 2022: IRedis accepted Redis 6 username auth and added Redis 7-oriented command support.
- 2024: The project updated Redis command grammar and Python support while deprecating standalone PyOxidizer builds after v1.15.2.
- 2026: IRedis 1.16.1 added Redis Cluster NAT mapping and MOVED redirect handling fixes.

### Related projects

- IRedis is related to Redis, redis-cli, redis-py, prompt-toolkit-style terminal interfaces, and the dbcli ecosystem that includes pgcli and mycli.

### 来源

- <https://formulae.brew.sh/formula/iredis>
- <https://github.com/laixintao/iredis>
- <https://pypi.org/project/iredis/>
- <https://raw.githubusercontent.com/laixintao/iredis/master/CHANGELOG.md>
- <https://raw.githubusercontent.com/laixintao/iredis/master/README.md>
- <https://www.pgcli.com/welcome-iredis.html>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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: /etc/iredisrc, ~/.iredisrc, ./.iredisrc

## Credential files

- Unix: /etc/iredisrc, ~/.iredisrc, ./.iredisrc
## 其他软件包管理器记录

- Debian apt - iredis - 1.15.1-2: normalized package name match | Debian stable package indexes: iredis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI for Redis with auto-completion and syntax highlighting | https://iredis.xbin.io
- Nix - iredis: normalized package name match | nixpkgs package indexes: pkgs/by-name/ir/iredis/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - iredis - 1.14.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: iredis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLI for Redis with auto-completion and syntax highlighting | https://iredis.io
- zypper - iredis - 1.15.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: iredis from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Terminal client for Redis with auto-completion and syntax highlighting | https://iredis.xbin.io/


## Combined YAML source

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


## 来源

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