---
title: "Variables"
description: "Plain settings the app reads at start, and the ones cyantula adds itself."
url: "https://cyantula.app/docs/apps/build/env/"
updated: "2026-12-03"
---

For app publishers

Plain settings the app reads at start, and the ones cyantula adds itself.

### What this is

A **variable** is a plain setting the app reads when it starts: a web address, a name, an on/off flag. It is not private, so cyantula shows it back to you as you saved it. Keys and passwords are different. They are **secrets** and live under [Secrets](https://cyantula.app/docs/apps/build/secrets/).

To **deploy** is to put a version of the app online. A new value only takes effect after a deploy, and this page can start that deploy for you when you save.

### Where to find it

1. Open the page and click your app.
2. Switch to at the top of the app page.
3. Click the card , then .

This page is only in the Advanced view. In the Simple view the same values are in [What this app needs](https://cyantula.app/docs/apps/build/needs/).

A number next to **Variables** counts required variables that are still empty.

### What you see

**Variables** (with the number of variables next to it) and two buttons at the top right:

- : reads a file from your computer. A file is a plain text file where each line is . Developers use it to keep an app&#39;s settings.
- .

Under them, an explanation of the page and, when something applies, coloured notices (see &quot;When something looks wrong&quot;).

**The table** has these columns:

- : the name as the app&#39;s code reads it. A small dot next to the name means the app&#39;s code reads it. A variable without the dot is no longer read by the app. Its value is kept until you remove it. Some names carry a pill:

 - : nobody chose this value. It is what the app falls back on by itself. Type a value to override it.
 - , and : these appear when you use a dev address. See .
 - A grey line may explain what the variable is for.
- : the box with the value. The small inside the box empties the value.
- : only when the app has a dev address. It is empty, with the text , until you give the dev address a value of its own.
- : a tick box. A required variable must have a value, or the deploy waits.
- A menu at the end of each row.

**The ☰ menu** offers:

- (or and ): puts the contents of a file you choose in the box, for example a key file. Nothing is saved until you click Save.
- : keeps the variable but removes its value.
- : the dev address goes back to using the live value.
- .
- .

**Under the table:**

- , and when a dev address exists. These ticked boxes decide which addresses restart when you save.
- The save button. Its label changes: , , or .

**Injected by cyantula** is a second card. It lists settings cyantula puts in your app by itself on every deploy, such as the app&#39;s own web address, with their real values. You do not set them and you cannot add them yourself. Your app should read them rather than have the address typed into its code. If email or AI is switched on for the app, a line tells you that a few more are added, and points you to the **Email** or **AI** page.

### How to add a variable

1. Click .
2. A window called opens. Under , is selected. Choose only for a key or password.
3. Under , type the name as the app&#39;s code reads it. Capital letters, digits and underscores only. Lower-case letters turn into capitals.
4. Under , type the value. You can leave it empty and fill it in later. To use a file instead, click .
5. If the app has a dev address, choose under : or .
6. Leave ticked if the app cannot run without it.
7. Click . A note at the bottom of the window says what will happen: whether the addresses restart now or the value waits for the next deploy.

You know it worked when the variable shows up in the table and a green message appears.

### How to change a value

1. Click in the box and change the text.
2. Decide whether to redeploy. Leave ticked to apply it right away. Untick it to store the value now and apply it with the next deploy.
3. Click the save button.
4. A message says The status next to the app name follows the deploy.

If you saved without redeploying, a blue bar says **The live app is still running the previous configuration. Deploy it to apply the saved values.** Click **Deploy live** on it when ready.

### How to import a .env file

1. Click and pick the file on your computer.
2. A window called and the file name opens. Nothing is saved yet. It compares the file with what cyantula already stores.
3. For each line, a pill says what would happen: , , , or . Secrets are shown as dots.
4. Tick the lines you want. , and help.
5. For a new line you can tick .
6. If the app has a dev address, choose where to write the values: or .
7. Click (or ).

A line **Skipped, as at publish** lists names the import ignores: database settings, settings cyantula adds itself, and paths that point at your own computer.

### How to rename a variable

1. Open the menu on its row and click .
2. Type the and click .

The value and the Required tick stay. Only the name changes. Rename it here only when the app&#39;s code reads the new name too.

### How to empty or remove a variable

- : menu, (or click the in the box). A window asks Click . The variable stays without a value. If it is required, the app needs a value before it deploys again.
- : menu, . A window asks and says its dev value is deleted too, and that if the app still reads it, the next deploy asks for it again. Click .

### When something looks wrong

- The app waits for a value. Fill in the rows marked as missing.
- Click .
- Only the dev address is affected. The live app keeps running.
- (a bar on the app page): click .
- , with and : nothing is stored yet. The app&#39;s variables are listed here after a deploy, or you add them yourself.
- and a reason. Nothing was changed. Try again. If a value was too big, the message says to upload it as a file instead. See .
- The name is taken.
- You cannot add a name that cyantula already provides.
- Fix the name.
- The app is in the middle of a job. The new values go live as soon as it is free.
- with a button. A deploy is running. Click to follow it under .

### Good to know

- Only people who manage the app can see and change variables.
- Variables are shown to you in plain text. Do not put passwords or keys here. Use .
- A change to a variable only takes effect after a deploy.
- A file the app opens by its path, such as a certificate, is not a variable. Upload it under on .
- Removing a variable cannot be undone. Add it again if you need it back.
- The dev address uses the same values as the live app unless you give it a . A change only the dev address reads never restarts the live app.
