LinuxCommandLibrary

jfrog

Official CLI for the JFrog Platform

TLDR

Configure a server connection interactively
$ jfrog config add [server-id]
copy
Upload artifacts to Artifactory
$ jfrog rt upload [file_pattern] [repo/path/]
copy
Download artifacts from Artifactory
$ jfrog rt download [repo/path/pattern]
copy
Search for artifacts in Artifactory
$ jfrog rt search [repo/path/pattern]
copy
Publish build info to Artifactory
$ jfrog rt build-publish [build-name] [build-number]
copy
Scan the current project for security vulnerabilities
$ jfrog audit
copy
Push a Docker image to an Artifactory Docker registry
$ jfrog docker push [image:tag] [repo]
copy
Delete artifacts matching a pattern
$ jfrog rt delete [repo/path/pattern]
copy

SYNOPSIS

jfrog command [subcommand] [options] [arguments]

DESCRIPTION

jfrog is the official CLI for the JFrog Platform. It provides unified command-line access to Artifactory, Xray, Distribution, Pipelines, and other JFrog services.
The tool manages binary artifacts across all major package types including Maven, npm, PyPI, Docker, Go, NuGet, and generic files. It integrates with CI/CD pipelines for build-info collection, promotion, and security scanning. The CLI supports file specs (JSON-based query syntax) for advanced artifact operations.
The jfrog executable has been renamed to jf in recent versions, though the jfrog name continues to work as an alias.

PARAMETERS

config

Manage server configurations (add, edit, remove, show, export, import).
rt
Artifactory commands (upload, download, search, delete, copy, move, build-publish, etc.).
xr
Xray commands for security scanning and vulnerability management.
audit
Scan project dependencies for security vulnerabilities and license compliance.
docker
Docker registry integration (push and pull via Artifactory).
npm, pip, go, maven, gradle, nuget
Package manager integrations with build-info collection.
--url URL
JFrog Platform URL.
--access-token TOKEN
Access token for authentication.
--user USER
Username for authentication.
--password PASSWORD
Password for authentication.
--server-id ID
Use a specific configured server.
--help
Display help information for a command.

CAVEATS

Requires a JFrog server (self-hosted or SaaS). Enterprise features such as Xray scanning require appropriate licensing. Server configuration is stored locally per user and must be set up before use with jfrog config add.

HISTORY

JFrog CLI was created by JFrog to provide unified command-line access to their artifact management platform. The CLI executable was renamed from jfrog to jf starting in 2022, though both names remain functional.

SEE ALSO

jf(1), docker(1), mvn(1), npm(1), pip(1), go(1), gradle(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard