Skip to Content

Deploy in SAP BTP, Cloud Foundry Runtime

This tutorial shows you how to deploy your CAP application as a multi-target application (MTA).
You will learn
  • How to deploy your CAP application as a multi-target application (MTA)
slavipandeSvetoslav PandelievDecember 18, 2025
Created by
slavipande
October 12, 2023
Contributors
PlamiIG
slavipande

Prerequisites

This tutorial follows the guidance provided in the SAP BTP Developer’s Guide.

  • Step 1

    The SAP BTP, Cloud Foundry environment allows you to create polyglot cloud applications in Cloud Foundry. It contains the SAP BTP, Cloud Foundry runtime, which is based on the open-source application platform managed by the Cloud Foundry Foundation.

    The SAP BTP, Cloud Foundry environment enables you to develop new business applications and business services, supporting multiple runtimes, programming languages, libraries, and services.

    For more information about the Cloud Foundry environment, see Cloud Foundry Environment.

  • Step 2
    1. From the root of the INCIDENT-MANAGEMENT project, choose the burger menu, and then choose TerminalNew Terminal.

    2. Log in to your subaccount in SAP BTP:

      bash
      Copy
      cf api <API-ENDPOINT>
      cf login
      cf target -o <ORG> -s <SPACE>
      

      You can find the API endpoint in the Overview section of your subaccount in the SAP BTP cockpit.

    3. Run the following command to deploy your application to the SAP BTP, Cloud Foundry runtime:

      bash
      Copy
      cds up 
      

      The cds up command simplifies the deployment process. It automates the steps that are otherwise done manually:

      • Adding the mta deployment descriptor with the cds add mta command.
      • Building the deployment archive with the mbt build command.
      • Deploying to the Cloud Foundry environment with the cf deploy command.
    4. Check if all services have been created:

      bash
      Copy
      cf services
      
      Services after deploy
    5. Check if the apps are running:

      bash
      Copy
      cf apps
      
      App after deploy

    In the next tutorials, you’ll access your UIs from SAP Build Work Zone, standard edition. The SAP Build Work Zone, standard edition triggers the authentication flow to provide the required token to access the service.

Back to top