// Module included in the following assemblies:
//
// * cli_reference/developer-cli-commands.adoc

[id="cli-basic-commands_{context}"]
= Basic CLI commands

== explain

Display documentation for a certain resource.

.Example: Display documentation for Pods
----
$ oc explain pods
----

== login

Log in to the {product-title} server and save login information for subsequent
use.

.Example: Interactive login
----
$ oc login
----

.Example: Log in specifying a user name 
----
$ oc login -u user1
----

== new-app

Create a new application by specifying source code, a template, or an image.

.Example: Create a new application from a local Git repository
----
$ oc new-app .
----

.Example: Create a new application from a remote Git repository
----
$ oc new-app https://github.com/sclorg/cakephp-ex
----

.Example: Create a new application from a private remote repository
----
$ oc new-app https://github.com/youruser/yourprivaterepo --source-secret=yoursecret
----

== new-project

Create a new project and switch to it as the default project in your
configuration.

.Example: Create a new project
----
$ oc new-project myproject
----

== project

Switch to another project and make it the default in your configuration.

.Example: Switch to a different project
----
$ oc project test-project
----

== projects

Display information about the current active project and existing projects on
the server.

.Example: List all projects
----
$ oc projects
----

== status

Show a high-level overview of the current project.

.Example: Show the status of the current project
----
$ oc status
----
