hanaCloudInstances ​
Command:
hanaCloudInstances
Category: HANA Cloud
Status: Production Ready
Description ​
List SAP HANA Cloud instances in the current target space, optionally filtered by instance name. The command queries both SAP BTP multi-environment and Cloud Foundry instances and prints status, URLs, and resource details when available.
Syntax ​
bash
hana-cli hc [name] [options]Aliases ​
hcInstancesinstanceslistHClisthchcinstances
Command Diagram ​
Parameters ​
Positional Arguments ​
| Parameter | Type | Description |
|---|---|---|
name | string | Instance name filter (default: **default**). |
Options ​
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--name | -n | string | **default** | SAP HANA Cloud instance name. |
Troubleshooting ​
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--disableVerbose | --quiet | boolean | false | Disable verbose output for script-friendly results. |
--debug | -d | boolean | false | Enable debug output with intermediate details. |
--help | -h | boolean | - | Show help. |
For a complete list of parameters and options, use:
bash
hana-cli hanaCloudInstances --helpExamples ​
Basic Usage ​
bash
hana-cli hc --name myInstanceList details for a specific SAP HANA Cloud instance.
Interactive Mode ​
This command can be run in interactive mode, which prompts for required inputs.
| Parameter | Required | Prompted | Notes |
|---|---|---|---|
name | Yes | Always | Instance name filter (default: **default**). |
Related Commands ​
Related commands from HANA Cloud:
hanaCloudStart- Start a HANA Cloud instancehanaCloudStop- Stop a HANA Cloud instancehanaCloudHDIInstances- List HANA Cloud HDI service instances
See the Commands Reference for all available commands.