Skip to content

Commit 9283fec

Browse files
committed
Update README with usage of 'profile'
1 parent fc08452 commit 9283fec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ The authorization configuration for GoCD can be locally cached for future use, s
2929
The 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'.
3335
gocd-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.
3641
gocd-cli who-am-i
3742
# The response to the above command should be:

0 commit comments

Comments
 (0)