JFROG CLI: Changing the Default Temp Directory for downloading Files in JFrog CLI
Introduction
When using JFrog CLI to download files, they are initially stored in a temporary directory before being processed further. This guide explains how to change this default temporary directory and introduces the use of the target flag.
Setting the Default Temp DirectoryBy default, JFrog CLI uses the operating system's temp directory for storing downloaded files.
To change the default temporary directory for downloaded files, set the JFROG_CLI_TEMP_DIR environment variable in your terminal:
export JFROG_CLI_TEMP_DIR="/path/to/your/desired/directory"
Replace "/path/to/your/desired/directory" with the path to your preferred directory.
Moreover, The target flag allows you to specify a different location for the final zipped file generated by JFrog CLI.
Purpose of the target Flag-
When downloading files with JFrog CLI, they are first stored in the temporary directory specified by JFROG_CLI_TEMP_DIR..
- By using the --target flag in your CLI command, you can designate a specific location where this final zip file should be copied.
For more information about the JF CLI Environment Variables, please refer to here.