astro env variable link delete

This command is only available on Astro.

Remove an explicit link, or an exclude, between a Workspace-scoped environment variable and a Deployment. Identify the variable with either --variable-key or --variable-id.

Usage

$astro env variable link delete

Options

OptionDescriptionPossible Values
--variable-keyThe key of the Workspace variable to unlink. Provide either this or --variable-id.Any string
--variable-idThe ID of the Workspace variable to unlink. Provide either this or --variable-key.Any valid variable ID
--deployment-idThe ID of the Deployment to unlink. Required.Any valid Deployment ID
--excludeRemove an exclude instead of a link.None
--workspace-idSet the Workspace scope. Defaults to your current Workspace from CLI context.Any valid Workspace ID

Examples

$# Remove a link between a Workspace variable and a Deployment
$astro env variable link delete --variable-key DATABASE_URL --workspace-id <workspace-id> --deployment-id <deployment-id>
$
$# Remove an exclude so the auto-linked variable applies to the Deployment again
$astro env variable link delete --variable-key LOG_LEVEL --workspace-id <workspace-id> --deployment-id <deployment-id> --exclude