# 使用 Homebrew, Nix 安装 immich-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install immich-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#immich-cli
```

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

## 软件包事实

- **软件包键:** brew:immich-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/immich-cli>
- **版本:** 3.0.1
- **来源摘要:** Command-line interface for self-hosted photo manager Immich
- **主页:** <https://immich.app/docs/features/command-line-interface>
- **仓库:** <https://github.com/immich-app/immich>
- **上游文档:** <https://docs.immich.app/features/command-line-interface>
- **许可证:** AGPL-3.0-only
- **源码归档:** <https://registry.npmjs.org/@immich/cli/-/cli-3.0.1.tgz>
- **最后更新:** 2026-07-04T02:30:15Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- immich (cli)
- immich (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.0.1
- 管理器更新时间: 2026-07-04
- 本地数据: OK
- 上游仓库: https://immich.app/docs/features/command-line-interface
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

immich-cli is the official command-line interface for Immich, the self-hosted photo and video management project. It is distributed from the Immich monorepo as the @immich/cli npm package and as an immich-cli container image.

### 项目历史

Immich's GitHub repository was created on 2022-02-03 and grew into a high-profile self-hosted alternative to cloud photo libraries. The CLI became the official automation surface for uploading photos and videos, checking server information, and authenticating with API keys outside the web and mobile clients.

The @immich/cli package metadata records publication history beginning in 2023. Official documentation describes the migration from a legacy npm package named immich to the scoped @immich/cli package, plus a Docker invocation path for users who do not want to install Node.js locally.

### 采用历史

immich-cli adoption follows Immich adoption. Repository metadata shows Immich with a very large GitHub audience, and Homebrew formula analytics show the CLI receiving thousands of installs over the measured 365-day formula window. The input metadata also records Nix packaging.

The CLI occupies a pragmatic role in the Immich ecosystem: it is the supported tool for bulk upload and scripting, while the official docs point users with Google Photos Takeout needs to the community-maintained immich-go tool.

### 使用方式

The official docs document login with an Immich server URL and API key, storage of credentials in auth.yml under ~/.config/immich by default, upload of files and directories, recursive upload, dry runs, album creation, duplicate handling, ignore globs, concurrency, JSON output, and environment-variable configuration.

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

immich-cli is package-nerd significant because it is a companion CLI for a fast-moving self-hosted application, and its packaging spans npm, Docker, Homebrew, and Nix. It also demonstrates the common tradeoff that led to immich-go: official Node-based CLIs are easy for project maintainers to ship from a TypeScript monorepo, while some users prefer static single-binary migration tools.

### 时间线

- 2022-02-03: Immich GitHub repository created.
- 2023-11-19: @immich/cli npm package metadata records its package creation date.
- 2025-10-01: Immich v2.0.0 stable release published.
- 2026: Official CLI docs describe @immich/cli installation, Docker usage, auth.yml credentials, and upload commands.

### Related projects

- immich-cli is part of the Immich monorepo and depends on the Immich server API. The official CLI docs recommend immich-go for Google Photos Takeout import workflows, making the two tools related but not equivalent.

### 来源

- <https://docs.immich.app/features/command-line-interface>
- <https://formulae.brew.sh/formula/immich-cli>
- <https://github.com/immich-app/immich>
- <https://www.npmjs.com/package/@immich/cli>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.config/immich/auth.yml

## Credential files

- Unix: ~/.config/immich/auth.yml
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - immich-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/im/immich-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - immich: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/im/immich/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/zh-hans/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [immich-go](https://www.automicvault.com/zh-hans/pkg/brew/immich-go/) - Shares av.db curated category or tags: cli, immich, media, photos.
- [gphotos-uploader-cli](https://www.automicvault.com/zh-hans/pkg/brew/gphotos-uploader-cli/) - Shares av.db curated category or tags: backup, cli, media, upload.
- [dvdbackup](https://www.automicvault.com/zh-hans/pkg/brew/dvdbackup/) - Shares av.db curated category or tags: backup, cli, media.
- [ente-cli](https://www.automicvault.com/zh-hans/pkg/brew/ente-cli/) - Shares av.db curated category or tags: cli, media, photos.
- [exif](https://www.automicvault.com/zh-hans/pkg/brew/exif/) - Shares av.db curated category or tags: cli, media, photos.
- [instaloader](https://www.automicvault.com/zh-hans/pkg/brew/instaloader/) - Shares av.db curated category or tags: cli, media, photos.
- [instalooter](https://www.automicvault.com/zh-hans/pkg/brew/instalooter/) - Shares av.db curated category or tags: cli, media, photos.
- [a52dec](https://www.automicvault.com/zh-hans/pkg/brew/a52dec/) - Shares av.db curated category or tags: cli, media.
- [lanraragi](https://www.automicvault.com/zh-hans/pkg/brew/lanraragi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, hosted, manager, media, node.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
