user-mgmt
bulk-upsert-users
Add or update multiple Cloud Pak for Data users.
Syntax
cpd-cli user-mgmt bulk-upsert-users \
--from-csv-file=<csv-file-name> \
--from-json-file=<json-file-name> \
--profile=<cpd-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--verbose]
Arguments
The bulk-upsert-users command
has no arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--cpdconfig |
The Cloud Pak for Data
configuration location. For example,
$HOME/.cpd-cli/config.
|
--from-csv-file |
A comma-separated (CSV) file that
describes the user details.
|
--from-json-file |
A JSON file that describes the
user details.
|
|
|
Display command
help.
|
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
--verbose |
Logs include more detailed
messages.
|
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.
- Add or update multiple Cloud Pak for Data users with parameters from a bulkUsers.csv file.
-
cpd-cli user-mgmt bulk-upsert-users \ --from-csv-file=bulkUsers.csv \ --cpdconfig=<cpd-configuration-location> \ --profile=${CPD_PROFILE_NAME} - Add or update multiple Cloud Pak for Data users with parameters from a bulkUsers.json file.
-
cpd-cli user-mgmt bulk-upsert-users \ --from-json-file=bulkUsers.json \ --cpdconfig=<cpd-configuration-location> \ --profile=${CPD_PROFILE_NAME}