master-server/deps/curl/docs/cmdline-opts/output-dir.md

27 lines
627 B
Markdown
Raw Normal View History

2024-05-15 15:20:32 -04:00
---
2023-12-11 20:30:44 -05:00
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: output-dir
Arg: <dir>
Help: Directory to save files in
Added: 7.73.0
Category: curl
Multi: single
2024-05-15 15:20:32 -04:00
See-also:
- remote-name
- remote-header-name
Example:
- --output-dir "tmp" -O $URL
2023-12-11 20:30:44 -05:00
---
2024-05-15 15:20:32 -04:00
# `--output-dir`
Specify the directory in which files should be stored, when --remote-name or
--output are used.
2023-12-11 20:30:44 -05:00
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 fails unless
--create-dirs is also used.