Add one or more environment variables to an Alpic environment
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.
The ID of the environment (optional — read from local config if omitted)
--key
The environment variable key
--value
The environment variable value
--secret
Mark as secret (default: true). Use --no-secret to store in plain text
--env-file
Path to a .env file to import (mutually exclusive with --key/--value)
--non-interactive
Disable interactive prompts. Requires --key and --value (or --env-file)
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.
Assistant
Responses are generated using AI and may contain mistakes.