Skip to main content
This command is only available on Astro.
Set the value of an environment variable. By default this command upserts: if the key doesn’t exist, the CLI creates it. Pass --strict to fail when the key is missing. Use --from-file to bulk-upsert variables from a dotenv file. The platform API doesn’t allow toggling the secret flag on an existing variable. To change whether an existing variable is secret, delete it and recreate it.

Usage

Options

Examples