Skip to content

adminHDI ​

Command: adminHDI
Category: HDI Management
Status: Production Ready

Description ​

Create an Admin User for HDI or assign HDI admin privileges to an existing user

Syntax ​

bash
hana-cli adminHDI [user] [password] [options]

Aliases ​

  • adHDI
  • adhdi

Command Diagram ​

Parameters ​

OptionTypeDefaultGroupDescription
[user]string(none)Positional ArgumentUser to be created/assigned as HDI Admin.
[password]string(none)Positional ArgumentPassword for the new HDI Admin user. Not required if the user already exists and just needs to be assigned HDI Admin privileges.
-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, --createbooleantrueOptionsCreate new user. Set to false to assign privileges to an existing user without creating a new one.
-u, --userstring(none)OptionsUser to be created/assigned as HDI Admin.
-p, --passwordstring(none)OptionsPassword for the new HDI Admin user.

For a complete list of parameters and options, use:

bash
hana-cli adminHDI --help

Examples ​

Create New HDI Admin User ​

bash
hana-cli adminHDI HDI_ADMIN MySecurePassword123

Creates a new user named HDI_ADMIN with HDI administrator privileges.

Assign HDI Admin Privileges to Existing User ​

bash
hana-cli adminHDI EXISTING_USER MyPassword --create false

Assigns HDI admin privileges to an existing user without creating a new user.

Using Named Parameters ​

bash
hana-cli adminHDI --user HDI_ADMIN --password MySecurePassword123

Create HDI admin user using named option parameters.

See the Commands Reference for other commands in this category.

See Also ​