JFrog CLI
$ jf Official Med RiskJFrog CLI (jf) automates artifact uploads and downloads in Artifactory, vulnerability and license audits via Xray (jf audit), build-info publishing, and package-manager wrapping. Supports --format json, --ai-help (JFROG_CLI_AI_HELP=true), and environment-variable credentials for headless CI and agent workflows.
brew install jfrog-cli jf wraps local npm, pip, docker, and Maven builds while streaming checksum-verified artifacts directly to Artifactory, which MCP tools cannot replace.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Offers --format json across modern audit/search commands, dedicated --ai-help guidance, and CI=true non-interactive mode.
- Supports
--format jsonand--ai-help/JFROG_CLI_AI_HELP=true - Accepts
JF_URLandJF_ACCESS_TOKENfor headless runs
Supports --dry-run on jf rt upload, jf rt copy, and jf rt del, plus scoped access tokens and config encryption.
--dry-runflag available on Artifactory file mutationsJFROG_CLI_ENCRYPTION_KEYencrypts saved credentials
Single Go binary distributed via Homebrew, npm wrapper, curl installers, and native Windows/Linux/macOS releases.
- Available via
brew install jfrog-cliand official installers
Covers artifact transfers, build-info capture, Xray CVE scanning, and repository management in one binary.
- Unifies Artifactory (
jf rt) and Xray (jf audit) operations
Official JFrog repository (jfrog/jfrog-cli) under Apache-2.0 with active multi-year maintenance.
- First-party JFrog repository with regular releases
Extensive docs and --ai-help, though older subcommands still mix legacy --spec flags with newer JSON flags.
- Official JFrog CLI documentation and built-in
jf options
Security, Auth & Guardrails
Stores server profiles and encrypted tokens in ~/.jfrog/jfrog-cli.conf.v6 (controlled via JFROG_CLI_HOME_DIR and JFROG_CLI_ENCRYPTION_KEY), or accepts JF_URL and JF_ACCESS_TOKEN env vars.
Apache-2.0 open-source CLI; Artifactory and Xray require a JFrog Platform subscription or free cloud tier.
# JFrog CLI (jf) Agent Rules - Prefer `JF_URL` and `JF_ACCESS_TOKEN` env vars over interactive `jf config add`. - Run `jf rt upload --dry-run` or `jf rt del --dry-run` before mutating or deleting Artifactory repositories. - Pass `--format json` on `jf audit` and `jf rt search` for parseable output.
Agent-Ready Command Recipes
Safe Read-Only Queries
jf audit --format json
Scans project dependencies with JFrog Xray and emits structured JSON vulnerability findings.
jf rt search --ai-help
Outputs expanded usage rules, prerequisites, and runnable examples for Artifactory search.
Controlled Writes & Previews
jf rt upload "dist/*.tgz" generic-local/releases/ --dry-run
Previews matching local files and target Artifactory paths without uploading any bytes.
Strengths for Agents
- + Dedicated
--ai-helpmode gives agents prerequisites, gotchas, and concrete examples. - + Supports
--dry-runon Artifactory upload, move, and delete operations.
Caveats & Pitfalls
- ! Some legacy
jf rtsubcommands emit unstructured log lines alongside JSON unless log levels are tuned viaJFROG_CLI_LOG_LEVEL. - ! Large subcommand surface requires careful scoping of
JF_ACCESS_TOKENpermissions.