btp-cli

Generates SAP BTP CLI commands for subaccount, entitlement, service, and security management.

Updated May 18, 2026
One-click install
npx skills add https://github.com/Melik1986/axon-erp-api --skill btp-cli-melik1986
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: btp-cli
Source: https://github.com/Melik1986/axon-erp-api/tree/main/cursor/skills/btp-cli
Command: npx skills add https://github.com/Melik1986/axon-erp-api --skill btp-cli-melik1986

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing SAP Business Technology Platform resources from the terminal requires memorizing the btp CLI's action/group/object syntax, correct flags, and targeting rules, which forces constant trips to btp --help and causes errors like running service commands without a targeted subaccount. ## Core Features & Use Cases - Command Generation: Produces complete, runnable btp commands across the accounts, security, and services groups with correct flags and parameter syntax. - Workflow Automation: Guides multi-step flows such as end-to-end subaccount setup (login, create subaccount, assign entitlements, create Cloud Foundry environment, assign roles) and scripting patterns using --format json piped to jq. - Troubleshooting: Diagnoses common failures including SSO login issues, expired sessions, missing subaccount targets, and insufficient role collections. - Use Case: A platform engineer needs to provision a new dev subaccount with an XSUAA instance and grant a colleague admin access; the skill outputs the exact ordered command sequence with placeholders for IDs and instructions on how to retrieve them. ## Quick Start Ask the assistant to generate the btp CLI commands needed to create a new subaccount, assign an entitlement, and set up a Cloud Foundry environment.

Frequently Asked Questions about btp-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a BTP subaccount from the command line?▼

Use btp create accounts/subaccount with --display-name, --region, and --subdomain flags after logging in with btp login --sso. Check available regions first with btp list accounts/available-region, then target the new subaccount with btp target --subaccount <ID>.

How to assign entitlements with the btp CLI?▼

Run btp assign accounts/entitlement with --to-subaccount, --for-service, --plan, and --amount parameters. If assignment fails due to exhausted quota, check global account entitlements with btp list accounts/entitlement.

Why do btp service commands return not found errors?▼

Service commands require a subaccount context and fail when none is targeted. Run btp target --subaccount <SUBACCOUNT_ID> first, or pass --subaccount explicitly on each service command.

Does btp CLI support SSO login with a custom identity provider?▼

Yes, use btp login --sso --idp <TENANT_ID> to authenticate through a custom identity provider. Find the tenant ID with btp list security/trust or in the cockpit under Security > Trust Configuration.

How do I parse btp CLI output in shell scripts?▼

Use btp --format json before the action and pipe the output to jq, since text output is unstable across versions. For example, extract a subaccount GUID with jq -r '.value[] | select(.displayName=="Dev") | .guid'.