Creating and Managing Variables
apiki stores your variables so you can reuse them across sessions.
Creating a Variable
- Press
+to open the creation form - Fill in the fields:
- Name – The environment variable name (e.g.,
DATABASE_URL) - Value – The value to set (e.g.,
postgres://localhost/mydb) - Label – An optional description to help you remember what this is for
- Name – The environment variable name (e.g.,
- Press
Enterto save
The new variable appears in your list and is saved for future sessions.
Form Navigation
Tabor↓to move to the next fieldShift+Tabor↑to move to the previous fieldEnterto save (when on the last field)Escto cancel without saving
Editing a Variable
- Navigate to the variable you want to edit
- Press
=to open the edit form - Make your changes
- Press
Enterto save
Note
Variables from .env files can’t be edited directly. To modify one, first save it permanently (see .env Files).
Deleting a Variable
- Navigate to the variable you want to delete
- Press
-,Delete, orBackspace - Confirm the deletion
Warning
Variables from .env files can’t be deleted from apiki—they come from the files in your project. To remove them, edit the .env file directly.
Creating Alternatives
To have multiple values for the same variable (e.g., different database URLs for different environments):
- Create a new variable with
+ - Use the same Name as an existing variable
- Give it a different Value and a descriptive Label
The variables will be grouped together, and only one can be selected at a time. See Selecting for details on how alternatives work.