btp-cloud-foundry
Skill1 starsChanged 4 months agoMITView on GitHub
SAP BTP Cloud Foundry runtime — CF CLI operations, deployment, service lifecycle, troubleshooting, manifest authoring.
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-identitySkill
- btp-cloud-loggingSkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cap-upgradeSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- claude-memSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- engine-cap-developmentSkill
- The first 60 shown.
The file
Files
BTP Cloud Foundry — Deploy, Manage, & Troubleshoot
1. Login and Target
# Login to BTP CF API (region-specific endpoint)
cf login -a https://api.cf.us10.hana.ondemand.com
# Target specific org and space
cf target -o my-org -s dev
# Verify current target
cf target2. Deploy Application
# Standard push (uses manifest.yml if present)
cf push my-app
# Push with custom manifest
cf push my-app -f manifest-prod.yml
# Push with specific buildpack
cf push my-app -b nodejs_buildpack
# Push without starting (for binding services first)
cf push my-app --no-start3. Author manifest.yml
---
applications:
- name: my-cap-app
buildpack: nodejs_buildpack
memory: 256M
disk_quota: 512M
instances: 2
routes:
- route: my-cap-app.cfapps.us10.hana.ondemand.com
services:
- my-xsuaa
- my-destination
- my-hdi-container
env:
NODE_ENV: production
CDS_ENVIRONMENT: production
health-check-type: http
health-check-http-endpoint: /health4. Manage Services
# List marketplace services and plans
cf marketplace
cf marketplace -s xsuaa
# Create service instance
cf create-service xsuaa application my-xsuaa -c xs-security.json
cf create-service hana hdi-shared my-hdi-container
cf create-service destination lite my-destination
# Bind service to app
cf bind-service my-app my-xsuaa
# Create and view service keys
cf create-service-key my-xsuaa my-key
cf service-key my-xsuaa my-key
# List all services in space
cf services5. Zero-Downtime Deploy (Blue-Green)
# Deploy new version with temporary route
cf push my-app-green
# Map production route to new version
cf map-route my-app-green cfapps.us10.hana.ondemand.com -n my-app
# Unmap route from old version
cf unmap-route my-app cfapps.us10.hana.ondemand.com -n my-app
# Stop and rename old version
cf stop my-app
cf rename my-app my-app-old
cf rename my-app-green my-app6. Troubleshoot
cf logs my-app --recent # recent logs
cf logs my-app # stream live logs
cf app my-app # app status and instances
cf events my-app # crash/start/stop events
cf env my-app # VCAP_SERVICES and env vars
cf enable-ssh my-app && cf ssh my-app # SSH into container
cf restart my-app # restart with same droplet
cf restage my-app # rebuild droplet (needed after new bindings)7. Deploy CAP App with mta.yaml
mbt build # build MTA archive
cf deploy mta_archives/my-cap-app_1.0.0.mtar # deploy to CF
cf mta my-cap-app # verify deploymentVerification
# Check app is running
cf app my-app
# Expected: #0 running, state=RUNNING
# Health check endpoint
curl -s https://my-app.cfapps.us10.hana.ondemand.com/health
# Expected: 200 OK
# Verify service bindings
cf env my-app | grep -A5 VCAP_SERVICES
# Expected: JSON with bound service credentials
# Check org quota usage
cf org-quota my-orgPitfalls
- App crashes immediately after push (401 on all endpoints)
- Cause: XSUAA service not bound before app start, or binding created after staging.
- Solution:
cf push my-app --no-start→cf bind-service my-app my-xsuaa→cf start my-app.
- Memory quota exceeded
- Cause: BTP CF trial accounts limited to 1GB total. Paid accounts have org-level quotas.
- Solution: Check
cf org-quota my-org. Reducememoryin manifest or stop unused apps.
- Route collision during blue-green deploy
- Cause: Both old and new apps mapped to same hostname simultaneously without unique temp name.
- Solution: Use
-greensuffix for new version. Map route only after green is healthy.
- SSH fails with "not enabled"
- Cause: SSH disabled by default on BTP CF for security.
- Solution:
cf enable-ssh my-appthencf restage my-app. Disable in production.
- Restage needed after binding new service
- Cause: VCAP_SERVICES env vars are injected at staging time, not runtime.
- Solution: After
cf bind-service, runcf restage my-appto pick up new credentials.
- Buildpack version mismatch
- Cause: SAP buildpacks have version-specific Node.js/Java requirements. Unpinned buildpack auto-updates may break.
- Solution: Pin buildpack version in manifest:
buildpack: nodejs_buildpack#1.8.0.
- Service plan not available in region
- Cause: Some BTP service plans are region-specific (e.g. HANA not available in all regions).
- Solution: Check
cf marketplace -s <service>to verify plan availability before creating.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

