Forrest logo
back to the oc tool

oc:tldr:cd052

oc: Create a new project.
$ oc new-project ${project_name}
try on your machine

The command "oc new-project ${project_name}" is used in the OpenShift Container Platform command-line interface (CLI) to create a new project or namespace.

Here's a breakdown of the command:

  • "oc": This is the command-line tool for managing OpenShift resources.
  • "new-project": This subcommand is used to create a new project.
  • "${project_name}": This is a placeholder for the desired name of the project/namespace. You need to replace it with the actual name you want to give to your project.

When you run this command, it creates a new project or namespace with the specified name in the OpenShift cluster. A project or namespace is a logical and isolated space within the cluster where you can deploy and manage your application workloads, resources, and services. It helps you to organize and separate different applications or environments from each other.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the oc tool