Skip to main content
Version: v3

odo list services

Description

You can use odo list services to list all the bindable Operator backed services on the cluster.

Running the command

To list bindable services in the current project/namespace:

odo list services
$ odo list services
✓ Listing bindable services from namespace "myproject" [82ms]

NAME NAMESPACE
redis-standalone/Redis.redis.redis.opstreelabs.in myproject

To list bindable services in all projects/namespaces accessible to the user:

odo list services -A 
odo list services -A
✓ Listing bindable services from all namespaces [182ms]

NAME NAMESPACE
redis-standalone/Redis.redis.redis.opstreelabs.in myproject
hello-world/RabbitmqCluster.rabbitmq.com newproject

To list bindable services in a particular project/namespace that is accessible to the user:

odo list services -n <project-name>
$ odo list services -n newproject
✓ Listing bindable services from namespace "newproject" [45ms]

NAME NAMESPACE
hello-world/RabbitmqCluster.rabbitmq.com newproject

To get the JSON formatted output for any of the above commands, add -o json to the commands shown above. That would be:

  • odo list services -o json
  • odo list services -A -o json
  • odo list services -n <project-name> -o json