File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,14 @@ The authorization configuration for GoCD can be locally cached for future use, s
2929The command ` auth-config ` will do the work.
3030
3131``` shell
32- # Running the below command should cache configurations under $HOME/.gocd/auth_config.yaml.
32+ # Running the below command should cache configurations under $HOME/.gocd/auth_config.default.yaml.
33+ # Here 'default' is the profile of GoCD. And profile would help in handling multiple GoCD server with same CLI.
34+ # If no profile is set, it defaults to 'default'. The profile can be set using flag '--profile'.
3335gocd-cli auth-config store --server-url < gocd-url> --username < username> --password < password>
3436
37+ # Running below command by setting --profile would save cache under $HOME/.gocd/auth_config.central.yaml.
38+ gocd-cli auth-config store --server-url < gocd-url> --username < username> --password < password> --profile central
39+
3540# User creds cached can be validated using below command.
3641gocd-cli who-am-i
3742# The response to the above command should be:
You can’t perform that action at this time.
0 commit comments