Linux command
jfrog 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Configure
jfrog config add [server-id]
Upload
jfrog rt upload [file_pattern] [repo/path/]
Download
jfrog rt download [repo/path/pattern]
Search
jfrog rt search [repo/path/pattern]
Publish
jfrog rt build-publish [build-name] [build-number]
Scan
jfrog audit
Push
jfrog docker push [image:tag] [repo]
Delete
jfrog rt delete [repo/path/pattern]
说明
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.
参数
- 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.
FAQ
What is the jfrog command used for?
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.
How do I run a basic jfrog example?
Run `jfrog config add [server-id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does config do in jfrog?
Manage server configurations (add, edit, remove, show, export, import).