This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.12. Managing environment variables
odo
stores component-specific configurations and environment variables in the config
file. You can use the odo config
command to set, unset, and list environment variables for components without the need to modify the config
file.
2.12.1. Setting and unsetting environment variables 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Procedure
To set an environment variable in a component:
odo config set --env <variable>=<value>
$ odo config set --env <variable>=<value>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To unset an environment variable in a component:
odo config unset --env <variable>
$ odo config unset --env <variable>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To list all environment variables in a component:
odo config view
$ odo config view
Copy to Clipboard Copied! Toggle word wrap Toggle overflow