Skip to main content

Overview

Environment variables let you pass sensitive information—API keys, passwords, authentication tokens—to your Projects without exposing them in your code. Use them to authenticate with external services, configure different settings for development versus production, or share configuration across multiple Projects.

How it works

Environment variables are defined at either the Project level or workspace level. Variable hierarchy: Project-level variables take precedence over workspace-level variables. If you define the same key at both levels, the Project-level value is used. This lets you set workspace-wide defaults while allowing individual Projects to override specific values. Environment targeting: Each variable can target three contexts: Online IDE (development), deployed Projects (production), or both. Use different API keys or configuration for development versus production.

Usage

Project-level environment variables

Project environment variables are scoped to a single project. Manage them via the dashboard at https://app.intuned.io/projects/{project-id}/env-vars or with the CLI from your project directory.

Create an environment variable

Select New and provide a key, value, and optional description. Choose where to expose it: Online IDE, deployed Projects, or both.
Deployed environment variables require redeployment to take effect. When developing locally via CLI, see Local development.
Create Environment VariableTo use different values per environment, create two variables with the same key and select the appropriate environment for each.Create Environment Variable Different Values

Edit an environment variable

Select > Edit next to a variable to update its key, value, or environments.Edit Environment Variable

Delete an environment variable

Select next to the variable you want to delete, then select Delete. Confirm when prompted.Delete Environment Variable

Workspace-level environment variables

Workspace environment variables are defined at the workspace level and exposed to all Projects in that workspace.
Go to https://app.intuned.io/settings/env-vars to manage workspace-level variables.Access them from within a project by selecting Shared variables in the Environment Variables tab.Workspace Level Environment VariablesAlternatively, go to side panel > Workspace Settings > Environment Variables.Workspace Level Environment Variables Side Panel

Local development

When developing locally via CLI, the CLI reads .env files and system environment variables.
.env
TEST_VAR=local_value
.env files are for local development only and aren’t deployed. Before deploying, configure your environment variables using the dashboard or CLI commands above.

Online IDE

Develop on Intuned with zero config

CLI

Develop locally with your favorite IDE and tools