1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/cli-logging-in.adoc
2019-05-13 13:57:48 +10:00

44 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/getting-started.adoc
[id="cli-logging-in_{context}"]
= Logging in to the CLI
You can log in to the `oc` CLI to access and manage your cluster.
.Prerequisites
* You must have access to an {product-title} cluster.
* You must have installed the CLI.
.Procedure
* Log in to the CLI using the `oc login` command and enter the required
information when prompted.
+
----
$ oc login
Server [https://localhost:8443]: https://openshift.example.com:6443 <1>
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y <2>
Authentication required for https://openshift.example.com:6443 (openshift)
Username: user1 <3>
Password: <4>
Login successful.
You don't have any projects. You can try to create a new project, by running
oc new-project <projectname>
Welcome! See 'oc help' to get started.
----
<1> Enter the {product-title} server URL.
<2> Enter whether to use insecure connections.
<3> Enter the user name to log in as.
<4> Enter the user's password.
You can now create a project or issue other commands for managing your cluster.