I use the CLI (installed through npm) to upload images to Immich.
However, the most recent version brought a lot of API endpoints changes. I assume this is the cause of the CLI not working anymore.
The cli is version 2.1.0
When I run immich upload --recursive ~/Photos/, I get the following output:
joran@joran:~/immich-app$ immich login-key http://192.168.0.35:2283/api Az9LRUVpJ4gEG9wwC1Zc11ddnBu9EP9wuDQ4q8Ny0
Logging in to http://192.168.0.35:2283/api
file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:10254
throw new LoginError(`Failed to connect to server ${instanceUrl}: ${error2.message}`);
^
LoginError: Failed to connect to server http://192.168.0.35:2283/api: Error: 404
at file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:10254:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SessionService.login (file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:10253:22)
at async LoginCommand.run (file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:10305:5)
at async Command.<anonymous> (file:///usr/local/lib/node_modules/@immich/cli/dist/index.js:18507:3)
Node.js v20.14.0
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# The location where your uploaded files are stored
UPLOAD_LOCATION=/home/joran/Seagate_4TB/immich-app-backup
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=[REDACTED]
DB_PASSWORD=[REDACTED]
# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
The bug
I use the CLI (installed through npm) to upload images to Immich. However, the most recent version brought a lot of API endpoints changes. I assume this is the cause of the CLI not working anymore.
The cli is version 2.1.0
When I run
immich upload --recursive ~/Photos/
, I get the following output:Logging in also doesn't work:
The OS that Immich Server is running on
Ubuntu 24.04 LTS x86_64
Version of Immich Server
v1.106.3
Version of Immich Mobile App
not applicable
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response