CLI
Environment Variables
Manage environment variables for applications.
Manage the runtime environment variables for your applications using the nextune app env commands.
List variables
List all environment variables configured for an application:
nextune app env list my-api
# or by ID
nextune app env list 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dOutput:
KEY VALUE
NODE_ENV production
DATABASE_URL postgres://...
API_TOKEN ***Set variables
Add or update environment variables for an application. You can provide multiple KEY=VALUE pairs in a single command:
nextune app env set my-api NODE_ENV=production PORT=3000Note: Setting variables does not automatically restart your application. You must run
nextune app redeployfor the new variables to take effect.
Remove variables
Remove environment variables from an application:
nextune app env rm my-api NODE_ENV PORTLike setting variables, removing them requires a redeploy to take effect on the running application.
Related
- Apps — manage your applications