GuidesUpdated July 3, 2026
JFrog CLI Installation and Usage
guidejfrogartifactorycliartifact-managementrepo1toolsauthentication
jFrog Artifactory Guide
Overview
This is a simple process document to show how to install and utilize the jFrog CLI to upload images, and most importantly into our little corner of repo1's wild hierarchy.
Scope
- The instruction is written for MacOS but the jfrog CLI
- Other platforms have a variant, including Windows and Linux. Find them here
Definitions
- brew: homebrew utility, the basis for this method of installation
- jfrog: vendor of Artifactory and other products which we use on repo1.uhc.com
- usergroup:
eoa_artifactory_accessusergroup required for $userID to be in for access
Dependencies
- Homebrew or equivalent (see above)
- A userID able to upload files to repo1.uhc.com, in
eoa_artifactory_access
Procedure
Step 1 - Install jfrog CLI
brew install jfrog-cli
Step 2 - Add a config entry for Repo1
jfrog config add --url=https://repo1.uhc.com --user=$USERID --password=$REAL_PASSWORD --interactive=false
Step 3 - Show the config to validate it
jfrog config show
Example Output
Server ID: Default-Server
JFrog Platform URL: https://repo1.uhc.com/
Artifactory URL: https://repo1.uhc.com/artifactory/
Distribution URL: https://repo1.uhc.com/distribution/
Xray URL: https://repo1.uhc.com/xray/
Mission Control URL: https://repo1.uhc.com/mc/
Pipelines URL: https://repo1.uhc.com/pipelines/
User: omni_arti_chef
Password: ***
Default: true
Upload files
jfrog rt upload $PATH_TO_LOCAL_FILE_NAME generic-local/com/optum/epic_on_azure/$REMOTE_FILE_NAME
Upload files via UI
- Login
- Navigate in
Artifactstogeneric-local/com/optum/epic_on_azure - Click [Deploy] in the upper right
- Select
generic-write-only, ensure the pathing is correct - Select your file(s), upload
Read the contents of a path
In this example, we will take the output of the contents of the path rpm-virtual/8/x86_64/stable/Packages/ (which returns as JSON) and run it through jq to grab the path (file) name
jfrog rt s "rpm-virtual/8/x86_64/stable/Packages/*" | jq -r '.[].path'
Important Notes
!!! notes "Include any important notes here"
Appendix
!!! notes "Relevant links or other information"