odo: Developers CLI for OpenShift and Kubernetes

A CLI tool for developers writing and deploying applications on OpenShift and Kubernetes. 

odo is a CLI that helps developers build on OpenShift and Kubernetes

odo is a command-line interface (CLI) that helps developers iterate their code on Red Hat OpenShift and Kubernetes. odo  is an open source project. The odo  interface has a simple, extensible syntax that includes on-the-fly interactive help to construct the appropriate options for your commands.

odo  consolidates a series of separate steps to deploy your apps and make modifications. It can automatically check to ensure these changes have been correctly implemented and use the correct syntax. It replaces the  oc CLI, which required a deeper knowledge of OpenShift. odo  also uses the source-to-image (S2I) open source project to automatically create container images from your source code with a single command line sequence, which automates and consolidates a series of previous manual steps.

Existing tools, such as the  oc CLI, are operations-focused and require a more thorough understanding of Kubernetes and OpenShift concepts. The  odo  CLI abstracts away complex Kubernetes and OpenShift concepts for the developer, thus allowing developers to focus on what's most important to them: code.

odo features and highlights

Simple syntax and design centered around concepts familiar to developers, such as project, application, and component.

Detects changes to local code and deploys them to the cluster automatically, giving instant feedback to validate changes in real-time.

No servers are required for its use. odo runs entirely on a local client and supports MacOS, Windows, and Linux.

Lists all available components and services from the OpenShift cluster.

Obviates the need to use YAML code in many common circumstances.

Supports multiple languages and frameworks such as Node.js, Java, Ruby, Perl, PHP, and Python.

Video demo

Use odo to create and deploy applications

Join Cedric Clyburn as he walks you through the basics of odo, an open source, straightforward, CLI-based tool that helps developers build applications. You'll learn about the simple syntax odo uses and its official support for technologies like Node.js and Java. You'll also discover how odo is client-based, which means all you need to get started is an OpenShift or Kubernetes cluster. Finally, you'll get an introduction to devfiles, a portable document that describes your development environment.

Developer odo evolution session from the Red Hat Summit 2020 virtual event

Did you miss the "Event-driven Architecture with Quarkus, Kafka, and OpenShift" session from 2020 Red Hat Summit?

Interactive odo and CLI Tutorials

Lesson

Developing with odo

10 minutes | Beginner

Use OpenShift Do (odo), a CLI tool for developers, to manage application components on the OpenShift Container Platform.

Lesson

Build and deploy applications with odo

15 minutes | Beginner

Get familiar with OpenShift Do (odo) and how to build and deploy applications on the OpenShift Container Platform.

Lesson

Using the CLI to Manage Resource Objects

15 minutes | Beginner

Use the oc command line tool to determine what resource objects have been created related to your application, and how you can query or update them.