Questions tagged [jfrog-cli]

For questions about the command line interface (CLI) tool for JFrog (a DevOps automation platform). QUESTIONS MUST BE ABOUT USING THE CLI IN PROGRAMMING. Questions which are just about using the CLI, options for CLI tools, etc. are OFF-TOPIC on Stack Overflow.

JFrog CLI is a compact and smart client that provides a simple interface that automates access to JFrog products simplifying your automation scripts and making them more readable and easier to maintain.

JFrog CLI works with JFrog Artifactory, JFrog Mission Control, JFrog Bintray and JFrog Xray (through their respective REST APIs) making your scripts more efficient and reliable in several ways:

  • Parallel uploads and downloads
  • Checksum optimization
  • Wildcards and regular expressions
  • Upload preview

For more info about Jfrog CLI, visit Jfrog CLI wiki.

371 questions
3
votes
1 answer

How to upload complete folder structure to Artifactory repo to a new folder and keep he folder name as it is?

I'm new to automation and Tried uploading entire folder structure to Artifactory repo with parent folder and child folders structure is as below test1 folder contains sub-folder: new_ref and it also contains sub-folder>>v1, new_data1 and it also…
m.bharat
  • 33
  • 1
  • 4
3
votes
0 answers

error Couldn't find package "babel-core" on the "npm" registry

We are having a repository hosted on JFrog. I deleted the node_modules yarn.lock but after running yarn command I am getting the following error:error Couldn't find package "babel-core" on the "npm" registry. In .npmrc file we've: always-auth =…
user2451016
  • 1,857
  • 3
  • 20
  • 44
3
votes
1 answer

jfrog-cli in windows docker container - x509: certificate signed by unknown authority

I was trying to upload build artifacts from windows docker container to our hosted artifactory. I get this error x509: certificate signed by unknown authority, when running docker build. I am using Windows server 2016 VM with docker installed. I…
user2301
  • 1,857
  • 6
  • 32
  • 63
3
votes
1 answer

Gitlab-Ci. Transfer maven m2 local repository between stages

Good day collegues. I use gitlab ci in production. I have a lot of stages. 1)Build artifact 2)Deploy to external server 3)Using jfrog cli to deploy to artifactory I have a problem with caching maven local repository. My runners download all…
3
votes
1 answer

Jfrog-CLI installation isn't working

I'm running it on Ubuntu. when I try to run: npm install -g jfrog-cli-go I get: And when I try the other option of running it using curl, it gives the feeling like it succeeded but when I try to run > jfrog it doesn't recognize the command curl…
Ori Wiesel
  • 488
  • 2
  • 8
  • 26
3
votes
0 answers

Jenkins slave (linux) is taking Windows slash in maven path

I'am configuring Jfrog Artifactory with Jenkins through pipeline. It is master-slave architecture. Jenkins master is on Windows where slave is on Redhat Linux. For maven configuration i have specified on global tools configuration like this:…
3
votes
3 answers

Artifactory AQL download artifact

Is there a way to download an artifact using AQL? I have a query sent with: curl -u user:pass \ -X POST https://artifactoryURL/artifactory/api/search/aql \ -H 'content-type: text/plain' \ -T query.aql And my query.aql: items.find( { …
DavidGamba
  • 3,503
  • 2
  • 30
  • 46
3
votes
2 answers

How to copy specific artifacts across multiple instances in Artifactory?

How can I copy a specific artifact to another instance of Artifactory? From what I can see the export/import functionality only works for full system or full single repo copying. I don't want to replicate the full repo either. I just want to copy…
George
  • 170
  • 2
  • 13
3
votes
1 answer

Jfrog CLI does not respect configured API key

I'm using Powershell DSC to set up a Windows Server 2012 R2 box. As part of the configuration process, I'm provisioning jfrog.exe and executing a configuration command as a service account: jfrog rt config --url=$localArtifactoryInstance…
Matt Alioto
  • 403
  • 2
  • 10
2
votes
2 answers

Where does the Jfrog cli store build info and how can I view it and clear it before publishing?

I'm looking at the documentation for how to publish build info with the cli. What is really unclear is how and where the cli stores the build info when running subsequent commands. I can run a bunch of commands to "collect" build…
red888
  • 27,709
  • 55
  • 204
  • 392
2
votes
1 answer

Download file to current directory using the JFrog CLI

When I do jfrog rt dl a/b/c.zip I would expect c.zip to be in the current directory, but it is written to a/b/c.zip, for whatever reason. How can I force the CLI to download it to the current directory?
JohnnyFromBF
  • 9,873
  • 10
  • 45
  • 59
2
votes
1 answer

How to publish python package to Artifactory PyPi using JFrog CLI?

Assuming we have a PyPi repository (simple API) created in Artifactory. Inside of a Jenkins pipeline, it's required to use JFrog CLI to publish any kind of artifacts because of the security policies. Is there a way to push a python package…
Alex
  • 798
  • 1
  • 8
  • 21
2
votes
1 answer

How to delete artifacts automatically in JFrog while deleting specific branch on Gitlab?

I'm in need of integration of JFrog with Gitlab. My main goal is to delete all artifacts in JFrog automatically after specific branch is deleted. I've read about webhooks, but I am not certain how to use them effectively. What is the best solution…
Marcin
  • 23
  • 3
2
votes
3 answers

Deleting old artifacts from a list of repositories

I am trying to delete artifacts ( older than 6 months) from a list of repositories in jfrog artifactory. I am creating a spec file like below and using that spec i am deleting using jfrog cli. My query is there any way i can execute the aql in loops…
sg0133
  • 69
  • 7
2
votes
1 answer

How to export jFrog Artifactory repositories through REST API or a jFrog CLI command?

Using the UI, I can export Artifactory repositories. I'll be able to do it as mentioned in the documentation. But what if I want to do it through a Rest API call or a jFrog CLI command?
user2995458
  • 51
  • 1
  • 8
1
2
3
24 25