Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

JFrog CLI

$ jf Official Med Risk
JFrog · Workspace & SaaS · Apache-2.0 · macos / linux / windows

JFrog 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install jfrog-cli
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Offers --format json across modern audit/search commands, dedicated --ai-help guidance, and CI=true non-interactive mode.

  • Supports --format json and --ai-help / JFROG_CLI_AI_HELP=true
  • Accepts JF_URL and JF_ACCESS_TOKEN for headless runs
Trust & Safety 21 / 25

Supports --dry-run on jf rt upload, jf rt copy, and jf rt del, plus scoped access tokens and config encryption.

  • --dry-run flag available on Artifactory file mutations
  • JFROG_CLI_ENCRYPTION_KEY encrypts saved credentials
Setup & Portability 13 / 15

Single Go binary distributed via Homebrew, npm wrapper, curl installers, and native Windows/Linux/macOS releases.

  • Available via brew install jfrog-cli and official installers
Utility & Efficiency 13 / 15

Covers artifact transfers, build-info capture, Xray CVE scanning, and repository management in one binary.

  • Unifies Artifactory (jf rt) and Xray (jf audit) operations
Maintenance & Lineage 9 / 10

Official JFrog repository (jfrog/jfrog-cli) under Apache-2.0 with active multi-year maintenance.

  • First-party JFrog repository with regular releases
Docs & Verifiability 7 / 10

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

Auth Modes
Env API Key Config File OAuth Browser
Credential Storage

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.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; Artifactory and Xray require a JFrog Platform subscription or free cloud tier.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run local dependency security audit as JSON
jf audit --format json

Scans project dependencies with JFrog Xray and emits structured JSON vulnerability findings.

Print AI-oriented command guidance
jf rt search --ai-help

Outputs expanded usage rules, prerequisites, and runnable examples for Artifactory search.

Controlled Writes & Previews

Dry-run artifact upload to Artifactory
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-help mode gives agents prerequisites, gotchas, and concrete examples.
  • + Supports --dry-run on Artifactory upload, move, and delete operations.

Caveats & Pitfalls

  • ! Some legacy jf rt subcommands emit unstructured log lines alongside JSON unless log levels are tuned via JFROG_CLI_LOG_LEVEL.
  • ! Large subcommand surface requires careful scoping of JF_ACCESS_TOKEN permissions.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI