// Module included in the following assemblies:
//
// * rosa_learning/deploying_application_workshop/learning-deploying-application-s2i-deployments.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-deploying-application-s2i-deployments-retrieving-login_{context}"]
= Retrieving your login command

[role="_abstract"]
To create your cluster, log in to the {rosa-cli-first}. If you need to authenticate, use a token from {cluster-manager-first}.

.Procedure
. Confirm you are logged in to the {rosa-cli} by running the following command:
+
[source,terminal]
----
rosa whoami
----
+
If you are logged in to the command-line interface, skip to "Creating a new project". If you are not logged in to the command-line interface, continue this procedure.

. If you are not logged in to the {rosa-cli}, in {cluster-manager-url}, click the dropdown arrow next to your name in the upper-right and select *Copy login command*.
+
image::ostoy-cli-login.png[CLI Login]
+
. A new tab opens. Enter your username and password, and select the authentication method.
+
. Click *Display Token*
+
. Copy the command under "Log in with this token".
+
. Log in to the CLI by running the copied command in your terminal.
+
*For example*:
+
[source,terminal]
----
$ oc login --token=RYhFlXXXXXXXXXXXX --server=https://api.osd4-demo.abc1.p1.openshiftapps.com:6443
----
+
*Example output*:
+
[source,terminal]
----
Logged into "https://api.myrosacluster.abcd.p1.openshiftapps.com:6443" as "rosa-user" using the token provided.

You don't have any projects. You can try to create a new project, by running

oc new-project <project name>
----