immich/cli
2026-02-02 15:06:40 +01:00
..
bin Source Code added 2026-02-02 15:06:40 +01:00
src Source Code added 2026-02-02 15:06:40 +01:00
.editorconfig Source Code added 2026-02-02 15:06:40 +01:00
.gitignore Source Code added 2026-02-02 15:06:40 +01:00
.npmignore Source Code added 2026-02-02 15:06:40 +01:00
.nvmrc Source Code added 2026-02-02 15:06:40 +01:00
.prettierignore Source Code added 2026-02-02 15:06:40 +01:00
.prettierrc Source Code added 2026-02-02 15:06:40 +01:00
Dockerfile Source Code added 2026-02-02 15:06:40 +01:00
eslint.config.mjs Source Code added 2026-02-02 15:06:40 +01:00
LICENSE Source Code added 2026-02-02 15:06:40 +01:00
mise.toml Source Code added 2026-02-02 15:06:40 +01:00
package.json Source Code added 2026-02-02 15:06:40 +01:00
README.md Source Code added 2026-02-02 15:06:40 +01:00
tsconfig.json Source Code added 2026-02-02 15:06:40 +01:00
vite.config.ts Source Code added 2026-02-02 15:06:40 +01:00
vitest.config.ts Source Code added 2026-02-02 15:06:40 +01:00

A command-line interface for interfacing with the self-hosted photo manager Immich.

Please see the Immich CLI documentation.

For developers

Before building the CLI, you must build the immich server and the open-api client. To build the server run the following in the server folder:

$ pnpm install
$ pnpm run build

Then, to build the open-api client run the following in the open-api folder:

$ ./bin/generate-open-api.sh

Run from build

Go to the cli folder and build it:

$ pnpm install
$ pnpm run build
$ node dist/index.js

Run and Debug from source (VSCode)

With VScode you can run and debug the Immich CLI. Go to the launch.json file, find the Immich CLI config and change this with the command you need to debug

"args": ["upload", "--help"],

replace that for the command of your choice.

Install from build

You can also build and install the CLI using

$ pnpm run build
$ pnpm install -g .