Managing environment variables

Manipulate both config and preferences files to your liking

Debugging applications in odo Configuring the odo CLI

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

  • 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