Bind Package Version CLI

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

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, 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.5