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-developer-settings.adoc
2020-08-10 17:49:23 +00:00

53 lines
856 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/developer-cli-commands.adoc
[id="cli-settings-commands_{context}"]
= Settings CLI commands
== completion
Output shell completion code for the specified shell.
.Example: Display completion code for Bash
[source,terminal]
----
$ oc completion bash
----
== config
Manage the client configuration files.
.Example: Display the current configuration
[source,terminal]
----
$ oc config view
----
.Example: Switch to a different context
[source,terminal]
----
$ oc config use-context test-context
----
== logout
Log out of the current session.
.Example: End the current session
[source,terminal]
----
$ oc logout
----
== whoami
Display information about the current session.
.Example: Display the currently authenticated user
[source,terminal]
----
$ oc whoami
----