Skip to main content
Removes an environment variable from an Alpic environment. Prompts to select the key interactively unless --key is provided.
Authentication is required. Run alpic login or set ALPIC_API_KEY before using this command.

Usage

alpic environment-variable remove
Prompts to select the variable to remove interactively.

Extended Usage

Remove a specific variable non-interactively:
alpic environment-variable remove --key DATABASE_URL
Remove a variable from a specific environment:
alpic environment-variable remove --key DATABASE_URL --environment-id <environmentId>

Options

FlagDescription
--environment-idThe ID of the environment (optional — read from local config if omitted)
--keyThe key of the environment variable to remove
--non-interactiveDisable interactive prompts. Requires --key
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.