SAP

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

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 August 21, 2026
Created on December 15, 2025
Contributors

More from Dragomir Anachkov

See all 13 tutorials by Dragomir Anachkov →

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
Next