---
title: "How do I add environment variables to my application?"
date: "2025-05-07T16:03:01+00:00"
summary: "Learn how to add environment variables to your application with our simple step-by-step guide for developers."
image:
type: "article"
url: "/acquia-cloud-platform/add-ons/node-js/help/68546-how-do-i-add-environment-variables-my-application"
id: "c8ab31e9-fde8-4f06-91a1-0914d42d2299"
---

To add environment variables:

1.  Navigate to the desired environment on Acquia Cloud.
2.  In **Environment Variables**, click **Add Environment Variable**.

![User interface for adding environment variables to Acquia Cloud](https://acquia.widen.net/content/lduluafuva/web/Acquia%20Cloud_Access%20environment%20variables%20in%20UI.png?w=1090&v=10a50875-55e8-4b9a-a73f-8ac0a4263124&itok=_LoqPxKX)

3\. In the resulting form, enter the name and value of the variable. Variable names can only contain letters, numbers, and underscores, and may not begin with a number. Click **Submit** to save your new variable.

![User interface for adding environment variables to Acquia Cloud](https://acquia.widen.net/content/rjcxv803ap/web/Acquia%20Cloud_add%20environment%20variable%20form.png?w=480&v=46e9f079-a832-43ab-8958-75681207e8f1&itok=_eVS6WYW)

![User interface for adding environment variables to Acquia Cloud](https://acquia.widen.net/content/qaqbpaa4vc/web/Acquia%20Cloud_add%20environment%20variable%20completed%20form.png?w=480&v=b8d0ceec-cc51-438f-8171-52360e53eca2&itok=M8IAusij)

4\. Your newly-added variable appears in the list of variables.

![User interface for adding environment variables to Acquia Cloud](https://acquia.widen.net/content/pdttve0flu/web/Acquia%20Cloud_add%20environment%20variable%20completed.png?w=1090&v=bb519268-b1fc-4c88-ae93-688d1a030773&itok=hTmrP8hr)

Environment variables are updated and reflected in the environment code after completion of the **Update Environment Variable** task. The success of this update depends on the application's framework, as some frameworks may require a redeployment to apply the new environment variables.

For example, for Next.js, newly added/updated environment variables reflect in an application after the application is redeployed.