Skip to content

btp ​

Command: btp
Category: BTP Integration
Status: Production Ready

Description ​

Set the target for commands for the btp CLI to the global account, a directory, or a subaccount. Commands are executed in the specified target, unless you override it using a parameter. If the specified target is part of an account hierarchy, its parents are also targeted, so that if a command is only available on a higher level, it will be executed there.

Syntax ​

bash
hana-cli btp [directory] [subaccount] [options]

Aliases ​

  • btpTarget
  • btptarget
  • btp

Command Diagram ​

Parameters ​

Positional Arguments ​

ParameterTypeDescription
directorystringDirectory ID to target in the BTP hierarchy (optional).
subaccountstringSubaccount ID to target in the BTP hierarchy (optional).

Options ​

OptionAliasTypeDefaultDescription
--subaccount--sastring-The ID of the subaccount to be targeted.

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable Verbose output - removes all extra output that is only helpful to human readable interface. Useful for scripting commands.
--debug-dbooleanfalseDebug hana-cli itself by adding output of LOTS of intermediate details.

Examples ​

Basic Usage ​

bash
hana-cli btp --subaccount mySubaccount

Set the active BTP target to the specified subaccount.

See Also ​