Bind Package Version CLI

Bind a package version as a resource of an AppTrust application.

Description: Binds a specified package version to an application. The package version will be considered a resource of the application. A package version can be bound to only one application at a time.

Command:

jf apptrust package-bind <application-key> <package-type> <package-name> <package-version>

Alias command: jf at pb

Command Options

The following table describes the available command options.

OptionRequired/OptionalTypeDescription
<application-key>requiredstringThe application key. Must be 2-64 lowercase alphanumeric characters, beginning with a letter. Hyphens are supported. The key must be unique and immutable.
<package-type>requiredstringThe package type. For example, docker, maven, or generic.
<package-name>requiredstringThe package name.
<package-version>requiredstringThe package version.
--access-token "<access-token>"optionalstringThe JFrog access token.
--server-id "<id>"optionalstringThe server ID configured using the config command.
--url "<url>"optionalstringThe JFrog Platform URL.
--user "<user-name>"optionalstringThe JFrog user name.

Example

The following example binds version 4.5.5 of Maven package my-maven to application pizza-shop.

jf apptrust package-bind pizza-shop maven my.org:my-maven-package 4.5.5

Frequently Asked Questions

Common questions about binding a package version to an application.

plusFAQs
Q: How do I bind a package version to an application using the JFrog CLI?

A: Run jf apptrust package-bind <application-key> <package-type> <package-name> <package-version> (alias jf at pb). See Command Options for the full list of arguments.

Q: What happens if I try to bind a package version to more than one application?

A: A package version can be bound to only one application at a time. Unbind it from its current application first if you need to bind it elsewhere.

Q: What is the difference between binding and unbinding a package version?

A: Binding makes a package version a resource of an application. Unbinding removes that association.

Q: Can I also unbind a package version from an application?

A: Yes. Use the jf apptrust package-unbind command (alias jf at pu). See Unbind Package Version CLI for details.

Related Topics


Did this page help you?