output-dir.md (629B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: output-dir 5 Arg: <dir> 6 Help: Directory to save files in 7 Added: 7.73.0 8 Category: output 9 Multi: single 10 See-also: 11 - remote-name 12 - remote-header-name 13 Example: 14 - --output-dir "tmp" -O $URL 15 --- 16 17 # `--output-dir` 18 19 Specify the directory in which files should be stored, when --remote-name or 20 --output are used. 21 22 The given output directory is used for all URLs and output options on the 23 command line, up until the first --next. 24 25 If the specified target directory does not exist, the operation fails unless 26 --create-dirs is also used.