curl/docs/cmdline-opts/output-dir.md
Yedaya Katsman 62bfcb0c44
help: add flags to output and ssh categories
- Add --output, --remove-on-error, --output-dir and --created-dirs to
  the output help category

- Add --hostpubmd5, --hostpubsha256, --insecure (-k), and --pubkey to
  the ssh help category

Closes #14076
2024-07-04 09:58:23 +02:00

634 B

c SPDX-License-Identifier Long Arg Help Added Category Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl output-dir <dir> Directory to save files in 7.73.0 curl output single
remote-name
remote-header-name
--output-dir "tmp" -O $URL

--output-dir

Specify 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 fails unless --create-dirs is also used.