From 67ac68670441d9fa7f2d43e38ac187530c6451f3 Mon Sep 17 00:00:00 2001 From: Patrick Eigensatz Date: Sat, 2 Sep 2023 04:06:40 +0200 Subject: [PATCH] docs: bulk upload: Fix "upload directory" instructions (#3942) The command examples are titled "Upload current directory" and "Upload target directory", however the presented commands skip the `/import` directory, if the `--recursive` flag is not explicitly specified. --- docs/docs/features/bulk-upload.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/features/bulk-upload.md b/docs/docs/features/bulk-upload.md index c0d8151829..370346973c 100644 --- a/docs/docs/features/bulk-upload.md +++ b/docs/docs/features/bulk-upload.md @@ -68,16 +68,16 @@ Be aware that as this runs inside a container, you need to mount the folder from ```bash title="Upload current directory" cd /DIRECTORY/WITH/IMAGES -docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api +docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api ``` ```bash title="Upload target directory" -docker run -it --rm -v "/DIRECTORY/WITH/IMAGES:/import" ghcr.io/immich-app/immich-cli:latest upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api +docker run -it --rm -v "/DIRECTORY/WITH/IMAGES:/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api ``` ```bash title="Create an alias" alias immich='docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest' -immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api +immich upload --recursive --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api ``` :::tip Internal networking @@ -88,7 +88,7 @@ If you are running the CLI container on the same machine as your Immich server, 3. Use `--server http://immich-server:3001` for the upload command instead of the external address. ```bash title="Upload to internal address" -docker run --network immich_default -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --key HFEJ38DNSDUEG --server http://immich-server:3001 +docker run --network immich_default -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key HFEJ38DNSDUEG --server http://immich-server:3001 ``` :::