setup-jfrog-cli icon indicating copy to clipboard operation
setup-jfrog-cli copied to clipboard

What is --server-id?

Open sergiomarotco opened this issue 3 years ago • 2 comments

Hi, please give a real example of what the server-id variable looks like.

My xray server is: artifactory.congo123.com/xray My Artifactory is: artifactory.congo123.com/artifactory

what is --server-id ?

sergiomarotco avatar Sep 27 '22 07:09 sergiomarotco

@sergiomarotco, You can choose any value for the Server ID when configuring your JFrog instances using the jf c add command. This Server ID value can then be used as --server-id in other commands. Also use the jf c show to see the instances you previously configured.

eyalbe4 avatar Sep 27 '22 07:09 eyalbe4

You can configure multiple configurations on your machine and switch between them using the --server-id flag. Without the flag, the command will use the default config. Read more here - https://www.jfrog.com/confluence/display/CLI/JFrog+CLI#JFrogCLI-JFrogPlatformConfiguration

> jf c show

Server ID:			mictest
JFrog platform URL:		https://michaeltest.jfrog.io/
Artifactory URL:		https://michaeltest.jfrog.io/artifactory/
Distribution URL:		https://michaeltest.jfrog.io/distribution/
Xray URL:			https://michaeltest.jfrog.io/xray/
Mission Control URL:		https://michaeltest.jfrog.io/mc/
Pipelines URL:			https://michaeltest.jfrog.io/pipelines/
User:				[email protected]
Password:			***
Access token:			***
Default:			true

Server ID:			bs-test
JFrog platform URL:		http://10.70.30.17:8082/
Artifactory URL:		http://10.70.30.17:8082/artifactory/
Distribution URL:		http://10.70.30.17:8082/distribution/
Xray URL:			http://10.70.30.17:8082/xray/
Mission Control URL:		http://10.70.30.17:8082/mc/
Pipelines URL:			http://10.70.30.17:8082/pipelines/
Access token:			***
Default:			false

sverdlov93 avatar Sep 28 '22 09:09 sverdlov93