This is a cache of https://docs.openshift.com/container-platform/4.4/cli_reference/developer_cli_odo/managing-environment-variables-in-odo.html. It is a snapshot of the page at 2024-11-23T01:29:00.874+0000.
Managing environment variables in odo - Developer <strong>cli</strong> (odo) | <strong>cli</strong> tools | OpenShift Container Platform 4.4
×

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.

Setting and unsetting environment variables

Procedure
  • To set an environment variable in a component:

    $ odo config set --env <variable>=<value>
  • To unset an environment variable in a component:

    $ odo config unset --env <variable>
  • To list all environment variables in a component:

    $ odo config view