JFROG CLI: How to Configure JFROG_CLI_RELEASES_REPO Environment Variable
To optimize the retrieval of the analyzer in airgapped environments or when network access to https://releases.jfrog.io/ is slow,
customers can configure the JFrog CLI to use their internal Artifactory instance instead of directly accessing the public repository of JFrog.
This also enables caching analyzer is the remote repo of the Artifactory, reducing download times and improving performance.
Steps to Configure:
1. Create a Remote Repository:
In your Artifactory, create a remote generic repository pointing to https://releases.jfrog.io/.
2. Set the Environment Variable:
On the machine where JFrog CLI is installed, run the following command:
export JFROG_CLI_RELEASES_REPO=”<ServerID>/<RemoteRepo>”
Replace <ServerID>/<RemoteRepo> with the appropriate values for your instance and repository.
In order to review all the server IDs, execute “jf c show”
In the example above, my server id is Default-server and Repo “artifactory-repo”
export JFROG_CLI_RELEASES_REPO=Default-Server/artifactory-repo/
By setting this environment variable, JFrog CLI will retrieve an analyzer for scanning from the internal Artifactory.