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.
| Option | Required/Optional | Type | Description |
|---|---|---|---|
<application-key> | required | string | The 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> | required | string | The package type. For example, docker, maven, or generic. |
<package-name> | required | string | The package name. |
<package-version> | required | string | The package version. |
--access-token "<access-token>" | optional | string | The JFrog access token. |
--server-id "<id>" | optional | string | The server ID configured using the config command. |
--url "<url>" | optional | string | The JFrog Platform URL. |
--user "<user-name>" | optional | string | The 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.5Frequently Asked Questions
Common questions about binding a package version to an application.
FAQs
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
Updated 2 days ago
