Environment Variables
Some of the Artifactory commands make use of the following environment variable:
Variable Name | Description |
JFROG_CLI_MIN_CHECKSUM_DEPLOY_SIZE_KB | [Default: 10] Minimum file size in KB for which JFrog CLI performs checksum deploy optimization. |
JFROG_CLI_RELEASES_REPO | Configured Artifactory repository name to download the jar needed by the mvn/gradle command. This environment variable's value format should be server ID configured by the 'jf c add' command. The repository should proxy https://releases.jfrog.io. This environment variable is used by the 'jf mvn' and 'jf gradle' commands, and also by the 'jf audit' command, when used for maven or gradle projects. |
JFROG_CLI_DEPENDENCIES_DIR | [Default: $JFROG_CLI_HOME_DIR/dependencies] Defines the directory to which JFrog CLI's internal dependencies are downloaded. |
JFROG_CLI_REPORT_USAGE | [Default: true] Set to false to block JFrog CLI from sending usage statistics to Artifactory. |
JFROG_CLI_SERVER_ID | Server ID configured using the 'jf config' command, unless sent as a command argument or option. |
JFROG_CLI_BUILD_NAME | Build name to be used by commands which expect a build name, unless sent as a command argument or option. |
JFROG_CLI_BUILD_NUMBER | Build number to be used by commands which expect a build number, unless sent as a command argument or option. |
JFROG_CLI_BUILD_PROJECT | JFrog project key to be used by commands that expect build name and build number. Determines the project of the published build. |
JFROG_CLI_BUILD_URL | Sets the CI server build URL in the build-info. The "jf rt build-publish" command uses the value of this environment variable unless the --build-url command option is sent. |
JFROG_CLI_ENV_EXCLUDE | [Default: password;secret;key;token] List of semicolon-separated(;) case insensitive patterns in the form of "value1;value2;...". Environment variables match those patterns will be excluded. This environment variable is used by the "jf rt build-publish" command, in case the --env-exclude command option is not sent. |
JFROG_CLI_TRANSITIVE_DOWNLOAD | [Default: false] Set this option to true to include remote repositories in artifact searches when using the 'rt download' command. The search will target the first five remote repositories within the virtual repository. This feature is available starting from Artifactory version 7.17.0. NOTE: Enabling this option may increase the load on Artifactory instances that are proxied by multiple remote repositories.. |
JFROG_CLI_UPLOAD_EMPTY_ARCHIVE | [Default: false] Used by the "jf rt upload" command. Set to true if you'd like to upload an empty archive when '--archive' is set but all files were excluded by exclusions pattern. |
Note
Read about additional environment variables at the Welcome to JFrog CLI page.
Last updated