Linux command
jf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Configure Artifactory
jf config add
Upload artifact
jf rt u [file.jar] [repo/path/]
Download artifact
jf rt dl [repo/path/file.jar]
Search artifacts
jf rt s [repo/] --include-dirs
Build publish
jf rt bp [build-name] [build-number]
Docker push
jf docker push [image:tag] [repo]
Run Xray scan
jf xr scan --watches "[watch_name]"
Show server configuration
jf config show
说明
jf is the JFrog CLI for interacting with JFrog platform services including Artifactory, Xray, Distribution, and Pipelines. It manages artifact upload/download, build info collection, security scanning, and CI/CD integration. The tool supports all major package types (Maven, npm, Docker, Go, Python, NuGet, etc.) and provides both interactive and automation-friendly interfaces. The `rt` subcommand prefix targets Artifactory operations specifically.
参数
- config _CMD_
- Configure server connections.
- rt _CMD_
- Artifactory commands.
- docker _CMD_
- Docker registry commands.
- npm _CMD_
- npm registry commands.
- pip _CMD_
- Python registry commands.
- xr _CMD_
- Xray security scanning commands.
- go _CMD_
- Go registry commands.
- --server-id _ID_
- Server ID from configured servers.
- --help
- Display help information.
FAQ
What is the jf command used for?
jf is the JFrog CLI for interacting with JFrog platform services including Artifactory, Xray, Distribution, and Pipelines. It manages artifact upload/download, build info collection, security scanning, and CI/CD integration. The tool supports all major package types (Maven, npm, Docker, Go, Python, NuGet, etc.) and provides both interactive and automation-friendly interfaces. The `rt` subcommand prefix targets Artifactory operations specifically.
How do I run a basic jf example?
Run `jf config add` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does config _CMD_ do in jf?
Configure server connections.