---
schema_version: "1"
id: 7ea60de9c05ec82c731a4028d022e75d48fcbeff042c09fa1359b3b394f4733c
title: Setting Environment Variables
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.12/setting-environment-variables.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.12/setting-environment-variables
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 17916e0a473ee747471f8a6c1a91793047346b15576f4ae318efd311e1671f69
description: MuleSoft Documentation Site
release: "4.12"
latest: false
---
---
product: Mule Runtime
version: 4.12
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.12/shared-resources)

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