Skip to content

createContainer ​

Command: createContainer
Category: HDI Management
Status: Production Ready

Description ​

Create an HDI Container and populate connection details into default-env.json

Syntax ​

bash
hana-cli createContainer [container] [group] [options]

Aliases ​

  • cc
  • cCont

Command Diagram ​

Parameters ​

OptionTypeDefaultGroupDescription
[container]string(none)Positional ArgumentHDI Container to be created.
[group]string(none)Positional ArgumentHDI Container Group for the container to be created in.
-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.
-g, --groupstring""OptionsHDI Group.
-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 createContainer --help

Examples ​

Create Container in Default Group ​

bash
hana-cli createContainer myContainer

Creates a new HDI container named myContainer in the default group.

Create Container in Specific Group ​

bash
hana-cli createContainer myContainer myGroup

Creates a new HDI container named myContainer in the group myGroup.

Using Named Parameters ​

bash
hana-cli createContainer --container myContainer --group myGroup

Create container using named option parameters.

Without Saving Credentials ​

bash
hana-cli createContainer myContainer --save false

Creates an HDI container without saving credentials to default-env.json.

See the Commands Reference for other commands in this category.

See Also ​