mirror-immich/packages/cli
Jason Rasmussen db589455f4
refactor: move cli to package folder (#28356)
2026-05-11 14:49:45 -04:00
..
bin refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
src refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
.editorconfig refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
.gitignore refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
.npmignore refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
.prettierignore refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
.prettierrc refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
Dockerfile refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
LICENSE refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
README.md refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
eslint.config.mjs refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
mise.toml refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
package.json refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
tsconfig.json refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00
vite.config.ts refactor: move cli to package folder (#28356) 2026-05-11 14:49:45 -04:00

README.md

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 .