Skip to content

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 ​

  • hcInstances
  • instances
  • listHC
  • listhc
  • hcinstances

Command Diagram ​

Parameters ​

Positional Arguments ​

ParameterTypeDescription
namestringInstance name filter (default: **default**).

Options ​

OptionAliasTypeDefaultDescription
--name-nstring**default**SAP HANA Cloud instance name.

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable verbose output for script-friendly results.
--debug-dbooleanfalseEnable debug output with intermediate details.
--help-hboolean-Show help.

For a complete list of parameters and options, use:

bash
hana-cli hanaCloudInstances --help

Examples ​

Basic Usage ​

bash
hana-cli hc --name myInstance

List details for a specific SAP HANA Cloud instance.

Interactive Mode ​

This command can be run in interactive mode, which prompts for required inputs.

ParameterRequiredPromptedNotes
nameYesAlwaysInstance name filter (default: **default**).

Related commands from HANA Cloud:

  • hanaCloudStart - Start a HANA Cloud instance
  • hanaCloudStop - Stop a HANA Cloud instance
  • hanaCloudHDIInstances - List HANA Cloud HDI service instances

See the Commands Reference for all available commands.

See Also ​