1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/learning-deploying-application-deployment-new-project-cli.adoc

30 lines
842 B
Plaintext

// Module included in the following assemblies:
//
// * rosa_learning/deploying_application_workshop/learning-deploying-application-deployment.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-deploying-application-deployment-new-project-cli_{context}"]
= Creating a new project using the CLI
[role="_abstract"]
You can use {oc-first} to create a new project.
.Procedure
* Create a new project named `ostoy` in your cluster by running following command:
+
[source,terminal]
----
$ oc new-project ostoy
----
+
.Example output
[source,terminal]
----
Now using project "ostoy" on server "https://api.myrosacluster.abcd.p1.openshiftapps.com:6443".
----
** *Optional*: Create a unique project name by running the following command:
+
[source,terminal]
----
$ oc new-project ostoy-$(uuidgen | cut -d - -f 2 | tr '[:upper:]' '[:lower:]')
----