Need help with other JFrog products?
JFrog Platform
JFrog Artifactory
JFrog Xray
JFrog Mission Control
JFrog Distribution
[JFrog Pipelines]
JFrog Access
The following sections describe the commands available in the JFrog CLI for use with JFrog Mission Control.
We strongly recommend running theconfigcommand right after installing the JFrog CLI to avoid having to pass in the Mission Control URL and login credentials for every command.
Command name |
rt-instances |
Abbreviation |
rti |
Command name |
add |
Description |
Adds an Artifactory instance. |
Command arguments |
|
Artifactory instance name | The name that the Artifactory instance should be given in Mission Control. |
命令选项 |
|
--rt-url | [Mandatory] The Artifactory URL |
--rt-user | [Mandatory] An Artifactory admin user name |
--rt-password | [Mandatory] The corresponding Artifactory admin password - optionally encrypted |
--desc | [Optional] A description for the Artifactory instance |
--location | [Optional] The Artifactory instance location |
Example
jfrog mc rti add my-arti --rt-url=http://10.100.1.127 --rt-user=admin --rt-password=password
Command name |
remove |
Description |
Removes an Artifactory instance. |
Command arguments |
|
Artifactory instance name | The name of the Artifactory instance (as defined in Mission Control) to remove. |
命令选项 |
|
--quiet |
[Default: false] |
Example
jfrog mc rti remove my-arti --quiet=true
Command name |
attach-lic |
Description |
Attaches (and optionally installs) a license to the specified Artifactory instance and removes it from the specified bucket. |
Command arguments |
|
Artifactory instance name | The name of the Artifactory instance to which the license should be attached. |
命令选项 |
|
--bucket-id |
[Mandatory] |
--node-id | [Optional] If the Artifactory instance specified is actually a cluster, this parameter specifies which node in the cluster should be activated with the license. |
--license-path | [Optional] Specifies the full path to the license file. If not specified, the license is printed to standard output. |
--override | [Default: false] When true, overrides any license file currently existing in the path specified in the--license-path parameter. |
--deploy | [Default: false] When true, installs the license in the Artifactory instance. |
Example
分配一个许可从指定的桶specified Artifactory instance (my-arti). The license is displayed on standard output.
jfrog mc rt-instances attach-lic my-arti --bucket-id=abcdefg
Command name |
detach-lic |
Description |
Detaches a license from the specified Artifactory instance and returns it to the specified bucket. |
Command arguments |
|
Artifactory instance name | The name of the Artifactory instance from which the license should be detached |
命令选项 |
|
--bucket-id |
[Mandatory] |
--node-id | [Optional] |
Example
jfrog mc rt-instances detach-lic my-arti --bucket-id=abcdefg
This command is used to configure the JFrog CLI with the default Mission Control URL and login credentials which should be used in the other commands so that you don't have to pass them in each time. These values are defaults for each command and can be overridden per command by passing in alternative values for the Mission Control URL and login credentials. The values configured are saved in~/.jfrog/jfrog-cli.conf.
Command name |
config |
Abbreviation |
c |
命令选项 |
|
--url | [Optional] The default Mission Control URL to be used for the other commands. |
——用户 | [Optional] The default user to be used for the other commands. |
--password | [Optional] The default password to be used for the other commands. |
Command arguments |
If no arguments are passed in, the command will configure the Mission Control URL, user and password through the command options or through the interactive prompt |
show | Shows the stored configuration. |
clear | Clears the stored configuration. |
Examples
Configure the Mission Control URL, user and password using the interactive prompt.
$ jfrog mc c
Configure the Mission Control URL, user and password by passing them in as command options.
$ jfrog mc c --url=http://--user=admin --password=password
Show, and then clear the configuration details.
$ jfrog mc c show $ jfrog mc c clear