JFrog CLI

ARTIFACTORY: Artifactory Migration using JFrog CLI Transfer Tool

Products
Frog_Artifactory
Content Type
User_Guide
AuthorFullName__c
Emmanuel Ouzan, David Livshin, Daniel Milman
articleNumber
000006688
FirstPublishedDate
2025-11-16T09:15:07Z
lastModifiedDate
2025-11-13
VersionNumber
2
  1. On a machine with access to both the source and target Artifactory (this can be the source instance itself). Download and Install the latest JFrog CLI using one of the JFrog CLI installers:
    For example: 
    curl -fL https://install-cli.jfrog.io | sh
  2. Configure the connection details of the source Artifactory instance with your admin credentials. Run the following command and follow the instructions. 
    When asked about an Authentication method please use the Access Token Method.
     jf c add source-server

    Please make sure to create and use an Access Token for the authentication method for both the source and target Artifactories.

    User-added image 
    You can validate the configuration addition to the file with the following command:
    jf config show
    jf rt ping --server-id source-server
  3. Configure the connection details of the Target Artifactory instance. (Use an access token for authentication as well)
    jf c add target-server
  4. Ensure that the JFROG_HOME environment variable is set and holds the value of the JFrog Artifactory installation directory. It usually points to the /opt/jfrog directory.
    Add the following line to your shell configuration file, e.g., $HOME/.bashrc or more globally in /etc/environment.
    export JFROG_HOME=/opt/jfrog