config
profiles set
Set a new user profile.
Syntax
cpd-cli config profiles set <cpd-profile> \
[--output=json|yaml|table] \
[--url=<cpd-web-url>] \
[--user=<cpd-username>]
Arguments
Table 1: Command arguments
| Argument | Description |
|---|---|
<cpd-profile> |
The name of the profile to set for the user. |
Options
Table 1: Command options
| Option | Description |
|---|---|
|
|
Display command
help.
|
--output |
Specify an output format. Valid
formats include json, yaml, or table (the default format).
|
--url |
Specify the Cloud Pak for Data web
URL. You can determine the Cloud Pak for Data web URL by running the 'oc get routes' command. You
must add HTTPS protocol to the Cloud Pak for Data web URL (for example,
'https://<cpd-web-url>').
|
--user |
Specify the username of a Cloud
Pak for Data user.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Set a new profile to store the Cloud Pak for Data URL and its association with the local configuration.
-
cpd-cli config profiles set ${CPD_PROFILE_NAME} \ --user=<cpd-username> \ --url=<cpd-web-url>