environment-variables

A node for managing environment variables in n8n workflows

Package Information

Downloads: 7 weekly / 17 monthly
Latest Version: 0.1.1
Author: Romain Minaud

Documentation

n8n-nodes-environment-variables

This is an n8n community node. It lets you define multiple environment configurations and emit the variables for the selected environment in your n8n workflows.

Use it to keep development, staging, and production values in one node and switch between them at runtime.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources
Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

  • Define environments and key/value variables
  • Select the active environment
  • Optionally override the environment for manual runs

Credentials

This node does not require credentials.

Compatibility

Tested with n8n 1.120.4. It should work with n8n 1.x community nodes.

Usage

  1. Add the Environment Variables node.
  2. Add one or more environments and their variables.
  3. Set the Current Environment name to match one of your environments.
  4. (Optional) Use Override Environment to switch values when running manually.

Example output:

{
  "API_URL": "https://api.example.com",
  "API_KEY": "abc123",
  "_meta": {
    "environmentsConfigured": ["development", "production"],
    "selectedEnvironment": "production",
    "isOverridden": false
  }
}

Resources

Version history

  • 0.1.0: Initial release

Discussion