2019-02-18 15:59:27 -05:00
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
2019-10-02 11:30:49 -04:00
|
|
|
// * cli_reference/openshift_cli/developer-cli-commands.adoc
|
2019-02-18 15:59:27 -05:00
|
|
|
|
2019-05-13 08:55:00 +10:00
|
|
|
[id="cli-settings-commands_{context}"]
|
2019-02-18 15:59:27 -05:00
|
|
|
= Settings CLI commands
|
|
|
|
|
|
|
|
|
|
== completion
|
|
|
|
|
|
|
|
|
|
Output shell completion code for the specified shell.
|
|
|
|
|
|
2019-02-21 17:12:26 -05:00
|
|
|
.Example: Display completion code for Bash
|
2020-08-04 22:42:35 -04:00
|
|
|
[source,terminal]
|
2019-02-18 15:59:27 -05:00
|
|
|
----
|
|
|
|
|
$ oc completion bash
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
== config
|
|
|
|
|
|
|
|
|
|
Manage the client configuration files.
|
|
|
|
|
|
|
|
|
|
.Example: Display the current configuration
|
2020-08-04 22:42:35 -04:00
|
|
|
[source,terminal]
|
2019-02-18 15:59:27 -05:00
|
|
|
----
|
|
|
|
|
$ oc config view
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
.Example: Switch to a different context
|
2020-08-04 22:42:35 -04:00
|
|
|
[source,terminal]
|
2019-02-18 15:59:27 -05:00
|
|
|
----
|
|
|
|
|
$ oc config use-context test-context
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
== logout
|
|
|
|
|
|
|
|
|
|
Log out of the current session.
|
|
|
|
|
|
|
|
|
|
.Example: End the current session
|
2020-08-04 22:42:35 -04:00
|
|
|
[source,terminal]
|
2019-02-18 15:59:27 -05:00
|
|
|
----
|
|
|
|
|
$ oc logout
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
== whoami
|
|
|
|
|
|
|
|
|
|
Display information about the current session.
|
|
|
|
|
|
|
|
|
|
.Example: Display the currently authenticated user
|
2020-08-04 22:42:35 -04:00
|
|
|
[source,terminal]
|
2019-02-18 15:59:27 -05:00
|
|
|
----
|
|
|
|
|
$ oc whoami
|
|
|
|
|
----
|