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

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--output Specify an output format. Valid formats include json, yaml, or table (the default format).
Status
Optional.
Syntax
--output=json|yaml|table
Default value
table
Valid values
json|yaml|table
--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>').
Status
Optional.
Syntax
--url=<cpd-web-url>
Default value
No default.
Valid values
A valid profile URL.
--user Specify the username of a Cloud Pak for Data user.
Status
Optional.
Syntax
--user=<cpd-username>
Default value
No default.
Valid values
A valid Cloud Pak for Data user name.

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>