SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Managing User-Provided Environment Variables

Find out how to add and manage your own environment variables in the SAP BTP cockpit. You will customize your application settings as needed.

Overview

🎓 beginner 7 min. SAP BTP CockpitBeginnerSAP Business Technology PlatformSAP BTP Cloud Foundry Environment

You will learn

  • โœ”What a user-provided environment variable is
  • โœ”How to create a user-provided environment variable
  • โœ”How to delete a user-provided environment variable
Dragomir Anachkov D Dragomir Anachkov December 16, 2025
Created by November 20, 2025
Contributors

Prerequisites

Prerequisites

Note: This tutorial is part of a learning journey.

Steps

Step 1 What is a user-provided environment variable?
โ€”

User-provided variables are your custom environment variables, created as key-value pairs. You define them manually to pass data such as:

  • API tokens
  • Feature flags
  • Configuration values
  • External URLs

Caution: Avoid using user-provided environment variables for security-sensitive information like credentials. They might unintentionally appear in cf CLI output and Cloud Controller logs.

Example

Our sample applications are implemented to expect the variable DARK_MODE. This variable allows you to customize the UI theme of an app. Here’s a snippet from the source code of the sample Node.js app:

Code
const DARK_MODE = process.env.DARK_MODE === 'true';
Step 2 Create a user-provided environment variable
+
Step 3 Delete a user-provided environment variable
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. What is a user-provided environment variable? 2. Create a user-provided environment variable 3. Delete a user-provided environment variable

Learn more →