Bulk upload CLI
Total newb here. I'm 60 years old and I can't wrap my head on how to use the CLI tool to bulk upload folders from a Windows computer folder to my Ubuntu Server on the same network. Been spending a few days reading and rereading the bulk upload section. I've setup this server with Docker/Docker Compose, successfully update both server and Immich server, but can't seem to grasp how to use this fabulous CLI bulk image tool. I love Immich and appreciate any help.
20 Replies
..... I manually uploaded 2 gig of photo's and would like to backup more using the CLI bulk upload tool. Not sure how to use the command when in Windows?
Hello, I can help you
Can you first go on nodejs page and install the long term support version?
Them from the command line you can verify it install correctly by typing “node —version”
@hiddenpcmaster if you are stuck with nodejs installation, I'd suggest to look at my project https://github.com/simulot/immich-go
No installation, no dependency, just a binary to run in the console
GitHub
GitHub - simulot/immich-go
Contribute to simulot/immich-go development by creating an account on GitHub.
You can run the command on Windows, but it may be more of a pain.
It might be easier to copy the photos to your Ubuntu server and then run the CLI.
How many photos are you trying to import?
Hi Alex! I think I may have messed up my nodejs install...
when you say the "Can you first go on nodejs page and install the long term support version?" do you mean on the windows machine I'm trying to copy the files from or the Ubuntu machine where "Immich" is?
I think it might just be
node version
same result.
I'm so sorry and I'm probably way over my head... but really appreciate your help. I've never asked for help before. I may just upload photos manually. but really want to try to repair any damage to my ubuntu server before trying to install nodejs and npm.
Thank you. Will take a look.
That is a node error.. so it looks like it is installed fine. Not sure why version command doesn't work
I believe is it double dash not single so “—version”
Now try install immich with “npm i -g immich”
Doesn't look terrible, what's next?
yes! you were correct. node --version works! v16.20.2
I think the idea was to install nodejs on the windows machine and then use the CLI to upload the pictures you have on that computer:
https://immich.app/docs/features/bulk-upload
Bulk Upload (Using the CLI) | Immich
You can use the CLI to upload an existing gallery to the Immich server
You shouldn’t have to use sudo to install immich
You can run node as a user
it didn't work unless I used sudo.
Hmm
It wouldn’t work with node command or npm command?
Regardless, you can now use the immich command to run the cli now
I'm going to try combined with jram91 suggestion to install nodejs on the windows machine. Hopefully I'm off and running! Thanks to all. Will let you know how I made out.
please try
immich upload --help
👍