remove an environment variable
Usage: forge variables unset [options] <key>
--verbose enable verbose mode -e, --environment [environment] specify the environment (see your default environment by running forge settings list) -h, --help display help for command
The command allows the developer to remove (unset) an app-specific environment variable from a specific environment (for example, or ). When you run command without an environment option ( or ), the command unsets the variables in your default environment. Your default environment is set the first time you run an environment-specific command.
forge variables unset EXT_SERVICE_PORT
This command removes the Forge environment variable and its value from your app's default environment.
forge variables unset -e production EXT_SERVICE_PORT
This command removes the Forge environment variable and its value from your app's environment.
If you don't see environment variables that you're certain you've set, check the variables for other environments. Forge uses your default environment if you don't specify one, so variables meant for another environment might have been unintentionally applied there.
Rate this page: