---
schema_version: "1"
id: 3a45cfcb3789bf29bf2fc361d1f3a7dcb1a29241f992be8f45b61dab998d3eb6
title: Setting Environment Variables
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.11/setting-environment-variables.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.11/setting-environment-variables
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e10548b51a84bb353a972830b15253541048eb3dfb7057339d1bdcf5c7a898f8
description: MuleSoft Documentation Site
release: "4.11"
latest: false
---
---
product: Mule Runtime
version: 4.11
keywords: anypoint studio, esb, environment variables, system variables, system properties
---

# Setting Environment Variables

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

If you’re deploying multiple applications as a shared resource, you shouldn’t set any properties in
the project properties files. This might cause conflicts between the various apps that share a
domain. Instead, you can set environment variables over the scope of the deployed app, its domain,
and other apps under that domain.

The steps below explain how to set environment variables in Studio. These variables are only used
when you deploy locally through Studio. When you deploy your applications to a standalone server,
you must provide these variables through the command line.

1.  Under **Run**, select **Run Configurations**.

2.  Select the corresponding run configuration. If a run configuration does not exist for your
    project, you can create one by using the new button.

3.  Select the **Environment** tab, and add the variables you need.

    The environment variables you create are defined at the domain level. These will affect all of
    the applications associated with that domain when you deploy locally using Studio.

Setting environment variables only works when running the application in the Mule runtime engine
within Studio. This configuration does not affect design time operations such as DataSense,
automatic completion, or validation.

## See Also

- [Shared Resources](https://docs.mulesoft.com/mule-runtime/4.11/shared-resources)

- [Configuring Properties](https://docs.mulesoft.com/mule-runtime/4.11/configuring-properties)
