Move your environment variables and secrets to Nife
This guide moves the environment variables and secrets your app reads.
Step 1: Collect them from your old platform
- List every variable your app reads, with its value.
- Separate the secret values, such as API keys and passwords, from plain settings.
- Take secret values from your own records. Many platforms do not show them again.
Keep the list somewhere private. Do not paste it into tickets or chat.
Step 2: Add them on Nife
- In the dashboard, add them while you deploy, or in the app's Secrets section.
- From the command line, use these commands:
nifectl secrets create
nifectl secrets list
nifectl secrets update
nifectl secrets delete
Secrets reach your app at runtime as environment variables. Names are case sensitive and are stored as you type them, so keep the same names your code already reads.
For values shared across several apps, use organization secrets. See the Organizational Secrets page in the UI guide.
Step 3: Replace values that point to your old platform
A variable that holds the address of a service on your old platform, such as a database URL, needs a new value. Update it once the new service is ready.
Step 4: Check
Run nifectl secrets list and compare the names with your list.
Need help? Email support@nife.io.