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 ​
cccCont
Command Diagram ​
Parameters ​
| Option | Type | Default | Group | Description |
|---|---|---|---|---|
[container] | string | (none) | Positional Argument | HDI Container to be created. |
[group] | string | (none) | Positional Argument | HDI Container Group for the container to be created in. |
-a, --admin | boolean | false | Connection Parameters | Connect via admin (default-env-admin.json). |
--conn | string | (none) | Connection Parameters | Connection filename to override default-env.json. |
--disableVerbose, --quiet | boolean | false | Troubleshooting | Disable verbose output by removing extra human-readable output. Useful for scripting commands. |
-d, --debug | boolean | false | Troubleshooting | Debug hana-cli itself by adding lots of intermediate details. |
-h, --help | boolean | (none) | Options | Show help. |
-c, --container | string | (none) | Options | Container Name. |
-g, --group | string | "" | Options | HDI Group. |
-s, --save | boolean | true | Options | Save credentials to default-env.json. |
-e, --encrypt, --ssl | boolean | false | Options | Encrypt 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 --helpExamples ​
Create Container in Default Group ​
bash
hana-cli createContainer myContainerCreates a new HDI container named myContainer in the default group.
Create Container in Specific Group ​
bash
hana-cli createContainer myContainer myGroupCreates a new HDI container named myContainer in the group myGroup.
Using Named Parameters ​
bash
hana-cli createContainer --container myContainer --group myGroupCreate container using named option parameters.
Without Saving Credentials ​
bash
hana-cli createContainer myContainer --save falseCreates an HDI container without saving credentials to default-env.json.
Related Commands ​
See the Commands Reference for other commands in this category.