summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/output-dir.d
blob: 230ebeea5828c47b2a83b5ae19ae03396fc4c55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Long: output-dir
Arg: <dir>
Help: Directory to save files in
Added: 7.73.0
See-also: remote-name remote-header-name
Category: curl
Example: --output-dir "tmp" -O $URL
---

This option specifies the directory in which files should be stored, when
--remote-name or --output are used.

The given output directory is used for all URLs and output options on the
command line, up until the first --next.

If the specified target directory does not exist, the operation will fail
unless --create-dirs is also used.

If this option is used multiple times, the last specified directory will be
used.