The Immich CLI hashes every file before it uploads it. On a big folder of photos that takes a while, and there is a switch for it.
immich upload --skip-hash --recursive directory/
By default the upload command hashes each file first, so it does not upload the same file twice. The docs say you can skip this step when you are sure the files are unique, and that Immich always does its own deduplication through hashing, so the flag is only about performance. They add that with good bandwidth, skipping the hashing might be faster.
That is also the caveat. With --skip-hash the CLI sends everything, and the server decides what it already has. On a slow connection, with a folder that overlaps what is already in Immich, you would waste upload time on files that get thrown away. For a first import on a fast local network it makes more sense.
One more thing from the option list: the short form -h means --skip-hash here, not help. For help you type --help. I’d write the long form in scripts and avoid the confusion.
Like most options of immich upload, it can also be set with an environment variable, in this case IMMICH_SKIP_HASH, which is handy when you run the CLI from the Docker image.
Further reading: Immich CLI documentation
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically