blob: 5c53c7fdc27ce0b40069db1080a9859cf0fe2e8c [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: output-dir
4Arg: <dir>
5Help: Directory to save files in
6Added: 7.73.0
7See-also: remote-name remote-header-name
8Category: curl
9Example: --output-dir "tmp" -O $URL
10Multi: single
11---
12This option specifies the directory in which files should be stored, when
13--remote-name or --output are used.
14
15The given output directory is used for all URLs and output options on the
16command line, up until the first --next.
17
18If the specified target directory does not exist, the operation will fail
19unless --create-dirs is also used.