Removes an environment variable from an Alpic environment. Prompts to select the key interactively unless --key is provided.
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
| Flag | Description |
|---|
--environment-id | The ID of the environment (optional — read from local config if omitted) |
--key | The key of the environment variable to remove |
--non-interactive | Disable 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.