> For the complete documentation index, see [llms.txt](https://help.readymage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.readymage.com/application-management/variables-management.md).

# Variables Management

On this page, you can add/edit/remove environment variables that are used by your application.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FilYSZDXv0KkkQpNDdC7o%2Fimage.png?alt=media&amp;token=5a465df4-f2e2-4ec7-9985-6510411f9b1c" alt=""><figcaption></figcaption></figure>

### Add Environment Variable

1. Click **Add Variable**

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2F73DpZEIhxNULZv9qSATs%2Fimage.png?alt=media&amp;token=fa1321fb-59d4-4a52-9a6b-aaf1310fc834" alt=""><figcaption></figcaption></figure>

2. Enter variable name (1), variable value (2) and click **Save** (3).

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2Fog7C0MBDs5sLbhnQcME7%2Fimage.png?alt=media&amp;token=53653809-c216-4676-97f4-650f2f538b30" alt=""><figcaption></figcaption></figure>

After the environment variable is added, redeployment will be required for changes to be applied.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FJFNjk5IAJXwhMD3kPxYL%2Fimage.png?alt=media&amp;token=a9d3d3eb-318f-4672-ac69-60fd6f7c99de" alt=""><figcaption></figcaption></figure>

### Edit Environment Variable

Click on "**Pencil" icon** to open the environment variable edit modal.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FYZy2PG19wtqaUJyRNeSE%2Fimage.png?alt=media&amp;token=d999c7bc-af36-40cc-94b4-dc4606f181a8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2F4ahtY5WJa8qzKcWlhWLl%2Fimage.png?alt=media&amp;token=00e4126a-9ee5-466d-88a4-e359c4af710d" alt=""><figcaption></figcaption></figure>

When finished editing the value, click **Save**.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FPfvwVtdjEOFcls2XBEgw%2Fimage.png?alt=media&amp;token=0a276e9e-1a10-4d70-ad84-a55377d8078a" alt=""><figcaption></figcaption></figure>

After the environment variable is added, redeployment will be required for changes to be applied.

### Remove Environment Variable

Click on **Trash Icon**(1) near the variable you want to remove then click on **Delete** button (2).

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FkV1SnNjp5M1a2Fp3Jdu6%2Fimage.png?alt=media&amp;token=95196190-73d0-4517-bf60-af0d75bf311f" alt=""><figcaption></figcaption></figure>

In the opened modal, confirm that you want to delete a variable by clicking the **Yes, Delete** button.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FbvbQWYlzItqrCWe0sCOH%2Fimage.png?alt=media&amp;token=038d0068-b5f8-4a1f-a7ff-410d54a8156f" alt=""><figcaption></figcaption></figure>

If the variable is new and has not been deployed yet, it will be removed **immediately**.

If the variable was already deployed, you will see in **See Changes** that it will be removed **after** deployment.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FyoRzpdLt6piWM3lUKmk7%2Fimage.png?alt=media&amp;token=dc3d2dda-1805-49a2-be12-c2d8142112c4" alt=""><figcaption></figcaption></figure>

## Raw Editor

<div><figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2Fok9Hb6mq5w6Ul3CG5Edj%2Fimage.png?alt=media&amp;token=da0c5778-be03-48b7-89ed-2e8016fefa1b" alt=""><figcaption><p>Open <strong>Raw Editor modal</strong></p></figcaption></figure> <figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FUyKVgbWIFY5Ncah2v5ma%2Fimage.png?alt=media&amp;token=74ca59be-e5b4-4b77-a2ba-231533385f2d" alt=""><figcaption><p>Raw Editor ENV view</p></figcaption></figure></div>

Inside the Raw Editor modal, you can copy all environment variables, add/edit/delete them in bulk. And view them in JSON.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FeyCDzRc7ILuwQiymT5Mt%2Fimage.png?alt=media&amp;token=f171b1d5-8d4e-42ff-b628-cade6106ccc1" alt=""><figcaption></figcaption></figure>

## Hyva Credentials

The Variables Management page also includes **Hyva Credentials** modal.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FL7q4SgippyFONqMG845B%2Fimage.png?alt=media&amp;token=666689fa-3134-4fbf-a2e6-841f1d8b4181" alt=""><figcaption></figcaption></figure>

Here you can enter the **Hyva License Key** and the **Hyva Composer Repository** directly. Portal will also perform a check to see if the provided license key has access to the Hyva theme.

<figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FwBEXiRoC6NKiL79Twbqk%2Fimage.png?alt=media&amp;token=9498219a-d608-4bcf-b35d-46c3558576eb" alt=""><figcaption></figcaption></figure>

## Packagist

To install packages from Packagist, you need to provide **Composer Credentials** environment variable or have `auth.json` file in the repository. It is generally **recommended against** committing `auth.json` into the source code.

Instead, use `COMPOSER_AUTH` environment variable.

<div><figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FpLpQHsUGBO3DCUuKinku%2Fimage.png?alt=media&amp;token=71dc0371-febe-4b02-b5a1-c963e7035f0d" alt="Access Composer Auth modal"><figcaption><p>Access <strong>Composer Auth</strong> Modal</p></figcaption></figure> <figure><img src="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FJT7sxqDTsiIG2KOenmV1%2Fimage.png?alt=media&amp;token=fd1b4d78-d1e1-4083-9e72-a304e19c9e33" alt="Composer Auth modal"><figcaption><p>Composer Auth modal</p></figcaption></figure></div>
