Skip to main content
Version: v3

odo set namespace

odo set namespace lets you set a namespace/project as the current active one in your local kubeconfig configuration.

Running the command

To set the current active namespace you can run odo set namespace <name>:

odo set namespace <namespace>
Example
$ odo set namespace odo-dev
✓ Current active namespace set to "odo-dev"

Optionally, you can also use project as an alias to namespace.

To set the current active project you can run odo set project <name>:

odo set project <project>
Example
$ odo set project odo-dev
✓ Current active project set to "odo-dev"
tip

This command updates your current kubeconfig configuration, using either of the aliases. So running either odo set project or odo set namespace performs the exact same operation in your configuration.