// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-deploying-application/cloud-experts-deploying-application-deployment.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-deploying-application-deployment-retrieving-login_{context}"]
= Retrieving the login command

[role="_abstract"]
To deploy your application, you need to get the CLI login command.

.Procedure
. If you are not logged in to the CLI, access your cluster with the web console.

. Click the dropdown arrow next to your login name in the upper right, and select *Copy Login Command*.
+
image::4-cli-login.png[CLI login screen]
+
A new tab opens. 

. Select your authentication method.

. Click *Display Token*.

. Copy the command under *Log in with this token*. 

. From your terminal, paste and run the copied command. If the login is successful, you will see the following confirmation message:
+
[source,terminal]
----
$ oc login --token=<your_token> --server=https://api.osd4-demo.abc1.p1.openshiftapps.com:6443
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>
----