Skip to content

createContainerUsers ​

Command: createContainerUsers
Category: HDI Management
Status: Production Ready

Description ​

Create new HDI Container technical users for an existing container and populates connection details into default-env.json

Syntax ​

bash
hana-cli createContainerUsers [container] [options]

Aliases ​

  • ccu
  • cContU

Command Diagram ​

Parameters ​

OptionTypeDefaultGroupDescription
[container]string(none)Positional ArgumentHDI Container for which to create users.
-a, --adminbooleanfalseConnection ParametersConnect via admin (default-env-admin.json).
--connstring(none)Connection ParametersConnection filename to override default-env.json.
--disableVerbose, --quietbooleanfalseTroubleshootingDisable verbose output by removing extra human-readable output. Useful for scripting commands.
-d, --debugbooleanfalseTroubleshootingDebug hana-cli itself by adding lots of intermediate details.
-h, --helpboolean(none)OptionsShow help.
-c, --containerstring(none)OptionsContainer Name.
-s, --savebooleantrueOptionsSave credentials to default-env.json.
-e, --encrypt, --sslbooleanfalseOptionsEncrypt connections (required for SAP HANA service for SAP BTP or SAP HANA Cloud).

For a complete list of parameters and options, use:

bash
hana-cli createContainerUsers --help

Examples ​

Create Users for Container ​

bash
hana-cli createContainerUsers myContainer

Creates technical users for the existing HDI container myContainer and saves credentials to default-env.json.

Using Named Parameter ​

bash
hana-cli createContainerUsers --container myContainer

Create container users using named option parameter.

Without Saving Credentials ​

bash
hana-cli createContainerUsers myContainer --save false

Creates technical users without saving credentials to default-env.json.

With Encrypted Connection ​

bash
hana-cli createContainerUsers myContainer --encrypt

Creates users with SSL encryption enabled (required for SAP HANA Cloud).

See the Commands Reference for other commands in this category.

See Also ​