Skip to main content
Adds environment variables to an Alpic environment. Runs interactively by default. Variables are marked as secret by default, meaning their values are masked when listed.

Usage

Prompts for a key, value, and secret preference interactively.

Extended Usage

Add a single variable non-interactively:
Add a non-secret (visible) variable:
Import all variables from a .env file:
Import from a .env file into a specific environment:

Options

When running from a directory linked to an Alpic project (via alpic deploy), --environment-id is optional — the CLI reads it from the local .alpic config file.