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

ArgumentRequiredDescription
<plugin-name>YesName of the plugin to publish
<plugin-version>YesVersion of the plugin to publish

Options

None.

Environment Variables

VariableDefaultDescription
JFROG_CLI_PLUGINS_SERVEROfficial JFrog CLI Plugins registryConfigured Artifactory server ID. Publish uploads to this server
JFROG_CLI_PLUGINS_REPOjfrog-cli-pluginsRepository name. Use with JFROG_CLI_PLUGINS_SERVER to publish to a custom registry

Examples

Show Help

jf plugin publish --help

Publish 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_SERVER and JFROG_CLI_PLUGINS_REPO.

What’s Next

After publishing, install your plugin to verify it works.