Here we will learn different Administration options inside BTP
Administration and Operations
Administration and operation tasks for SAP BTP include management and configuration of global accounts and subaccounts as well as the operation of applications.
1. [Cockpit] BTP Administration from BTP Cockpit:
2. [CLI] BTP Administration with Command Line Interface (CLI):
You download the btp CLI client to your local desktop and access it through the shell of your operating system. The client then accesses all required platform services through its backend, the CLI server, where the command definitions are stored. The CLI server delegates authentication and authorization to the authorization server, and forwards trust to the platform services, which then take care of authorization at the execution of each command.
Download and Install the BTP CLI
You can use any terminal to work with the BTP CLI commands
Here we are using Visual Studio Code - Command Prompt
First Command to test BTP CLI is installed correctly or not:
If you are getting issues after installing the BTP CLI.
Error: C:\Users\sapte>btp The configuration at C:\Users\sapte\AppData\Roaming\SAP\btp\config.json was written for a client with version 2.49.0. The currently used client has version 2.18.0. Hence the configuration cannot be used
At any point in time, you can open the config.json file and change the parameters values:
C:\Users\sapte>BTP help
Connecting to CLI server at https://cpcli.cf.eu10.hana.ondemand.com...
SAP BTP command line interface (client v2.18.0)
Usage: btp [OPTIONS] ACTION [GROUP/OBJECT] [PARAMS]
Each GROUP contains multiple OBJECTS, on which you can perform ACTIONS.
ACTIONS:
list, get, create, update, delete, add, remove, assign, unassign, enable,
move, register, unregister, subscribe, unsubscribe, share, unshare, migrate,
restore
GROUPS:
accounts Objects related to the account model, subscriptions, and environments
security Authorization objects and users
services Objects related to SAP Service Manager
Example help calls:
btp help list Commands for ACTION "list"
btp help accounts Objects in GROUP "accounts"
btp help accounts/available-environment Actions for OBJECT "available-environment"
btp help list accounts/available-environment Command-specific help
btp help all Overview of all commands
General actions:
help Display help
login Log in to a global account of SAP BTP
logout Log out from SAP BTP
target Set the target for subsequent commands
enable autocomplete Enable command autocompletion
disable autocomplete Disable command autocompletion
Options:
--config Specify location of configuration file
--format Change output format (valid value: json)
--help Display help
--info Show version and current context
--verbose Print tracing information for support
--version Print client version
Tip:
To log in to a global account of SAP BTP, use 'btp login'. For help on login, use 'btp help login'.