config
users set
Create a local user
configuration.
Syntax
cpd-cli config users set <local-user-configuration-name> \
[--apikey=<api-key>] \
[--output=json|yaml|table] \
[--username=<cpd-user-name>]
Arguments
Table 1: Command arguments
Argument | Description |
---|---|
<local-user-configuration-name> |
The name of the local configuration to set for the user. |
Options
Option | Description |
---|---|
--apikey |
Set the user API key. The Generate
API key setting is available in the Cloud Pak for Data client's Profile and Settings
page.
|
|
Display command
help.
|
--output |
Specify an output format. Valid
formats include json, yaml, or table (the default format).
|
--username |
Specify a Cloud Pak for Data user
name.
|
Examples
Note: The following examples use the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Create a local user configuration by pasting an API key.
-
cpd-cli config users set <local-user-configuration-name> \ --apikey=<api-key> \ --username=<cpd-user-name>