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
2
votes
2 answers

Cleanup old artifacts from Jfrog artifactory OSS

I'm using Jfrog artifactory OSS version 5. I can see my snapshot repository is too huge and I want to remove unwanted artifacts from snapshot repository. I want to remove all artifacts which were not downloaded during last 6 months. I tried below…
hlesnt395
  • 603
  • 10
  • 30
2
votes
1 answer

jfrog cli artifact search by filename pattern

I want to search for a filename pattern across entire JFrog ARM without knowing the explicit repository name in the JFrog cli. jfrog rt s "reponame/*pattern*" is giving the results as expected in a specific repo. But I have repo1, repo2, repo3,…
sunil
  • 491
  • 4
  • 10
2
votes
1 answer

jfrog cli ssh authentication [Error:] unexpected end of JSON input

Anyone experienced below error when using cli to search on artifactory repositories? From time to time got below error (about 1 fail, 3 times successful). Any ideas? g Artifactory. [Info:] Searching Artifactory using AQL query: items.find({"repo":…
latomster
  • 21
  • 2
1
vote
1 answer

JFrog CLI: How can I set or delete a property whose name or value contains equal signs, commas or semicolons?

From Setting Properties on Files, I see that the JFrog CLI jf rt set-props command uses an equal sign to specify a property name/value pair, semicolons to separate multiple name/value pairs, and commas to separate multiple values within a…
Geoff Alexander
  • 419
  • 5
  • 13
1
vote
1 answer

Not able to login using CLI in jfrog

I am writing a command to do login in jfrog url using jfrog command line interface Jfrog document states that we need to do the login in the machine and need to save the credentials in the…
1
vote
1 answer

Powershell Jfrog RT Download leads to NativeCommandError

I am currently trying to create a Powershell script that includes the download of an artifact from jfrog. When running the script, I keep getting + jf rt download --url $url --user $username --password $password $repo ... +…
lars
  • 307
  • 1
  • 3
  • 10
1
vote
1 answer

How do I suppress "working" messasge from download / upload commands

When I run JFrog CLI jf rt download and jf rt upload commands, I get "working" messages as the download / upload progresses, even when JFROG_CLI_LOG_LEVEL=WARN is set: Working ∙●∙∙∙∙ || 25.0KiB/25.0KiB ||…
Geoff Alexander
  • 419
  • 5
  • 13
1
vote
0 answers

Publish Go project dependencies to Jfrog Artifactory

How can I load dependencies (based on go.mod) of a specific Go project in Jfrog Artifactory?. The project is loaded into the artifactory, but there is no dependency. I'm using local type artifactory Project super: |-- go.mod |-- go.sum |--…
1
vote
0 answers

400 error on publishing go dependencies in Jfrog artifactory

We are trying to publish some go dependencies in jfrog artifactory using the below command: jf go-publish v1.2.3 --self=false --deps=ALL with jfrog cli account config: Server ID: demo-go-repo-local JFrog platform URL: …
Mohit
  • 43
  • 5
1
vote
2 answers

I am trying to get the Digest SHA value from artifactory and wondering how I can get that

In Artifactory when you search for the package, it has the following column: Version Repositories Digest Modified Downloads Xray Status I am trying to find how I can retrieve the DIGEST SHA value using the cli. I have tried multiple commands and…
1
vote
2 answers

Push a docker image with Curl (Or Jfrog CLI)

TLDR: I try to push a docker image with curl, but the uploaded image is broken. Context: Due to connectivity limitation, I have to access our Artifactory docker registry through an API gateway. Docker commands as login can't work as it tries to…
1
vote
2 answers

How to scan Local builds using jFrog Xray

We have Artifactory and Xray for our developers and we have Azure DevOps pipelines integrated with these tools where the builds are scanned for each pipeline execution. But when developers are doing local builds from their development workstations…
1
vote
1 answer

Jfrog CLI Maven snapshot and release deployments

In our project, we are using maven as the build tool, GitHub actions as the build agent, and Jfrog as the artifactory to deploy the jar files. We have both snapshot and release versions (identified using the "SNAPSHOT" in the version tag in pom).…
SputNick
  • 106
  • 8
1
vote
1 answer

How to use JFrog cli in cake script

We are using cake script as part of our build process. Please let me know how can I use JFrog cli command in cake script. https://www.jfrog.com/confluence/display/CLI/JFrog+CLI jf rt u
Appu
  • 185
  • 1
  • 3
  • 6
1
vote
0 answers

JFrog CLI search with json filespec ignoring the include?

I'm using the below json filespec for a search query with Jfrog CLI but it's ignoring the "include" part of the spec. There's no documentation on using include within a filespec, just straight AQL examples. { "files": [{ "aql": { …
Alistair Hardy
  • 397
  • 1
  • 4
  • 16