jf plugin publish
Publish a JFrog CLI plugin to the plugins registry. You run this command from the plugin's directory.
Synopsis
jf plugin publish <plugin-name> <plugin-version> [options]
Aliases: plugin p
Arguments
| Argument | Required | Description |
|---|---|---|
<plugin-name> | Yes | Name of the plugin to publish |
<plugin-version> | Yes | Version of the plugin to publish |
Options
None.
Environment Variables
| Variable | Default | Description |
|---|---|---|
JFROG_CLI_PLUGINS_SERVER | Official JFrog CLI Plugins registry | Configured Artifactory server ID. Publish uploads to this server |
JFROG_CLI_PLUGINS_REPO | jfrog-cli-plugins | Repository name. Use with JFROG_CLI_PLUGINS_SERVER to publish to a custom registry |
Examples
Show Help
jf plugin publish --helpPublish a Plugin
cd <plugin-directory>
jf plugin publish <plugin-name> <plugin-version>Publish to Custom Registry
export JFROG_CLI_PLUGINS_SERVER=<server-id>
export JFROG_CLI_PLUGINS_REPO=<repo-name>
jf plugin publish <plugin-name> <plugin-version>When to Use
Use jf plugin publish when you have developed a JFrog CLI plugin and want to share it via the plugins registry (or your organization's private registry).
Important Notes
- Run this command from the root directory of your plugin source code.
- The plugin must conform to the JFrog CLI plugin structure (Go binary with specific entry points). See the Plugin Developer Guide for requirements.
- Publishing to the official registry requires the plugin to be accepted into the jfrog-cli-plugins-reg repository.
- For private registries, set
JFROG_CLI_PLUGINS_SERVERandJFROG_CLI_PLUGINS_REPO.
Updated about 1 month ago
