LinuxCommandLibrary

ibmcloud-logout

Log out from IBM Cloud CLI

TLDR

Log out of the current session

$ ibmcloud logout
copy

SYNOPSIS

ibmcloud logout

DESCRIPTION

The ibmcloud logout command is an integral part of the IBM Cloud Command Line Interface (CLI), designed to securely terminate a user's current authenticated session with IBM Cloud. When executed, this command responsibly removes the locally stored authentication tokens and session credentials. This action ensures that subsequent CLI operations requiring authentication will prompt the user to re-authenticate, safeguarding access to IBM Cloud resources. It is a vital security feature, especially when working on shared workstations or when there's a need to switch between different IBM Cloud accounts or user profiles. The command is straightforward, requiring no additional parameters or arguments, making its usage simple and efficient. It functions as a core utility of the ibmcloud CLI, rather than being associated with a specific plugin, underscoring its fundamental role in session management.

CAVEATS

Logging out with ibmcloud logout only affects the local CLI session by removing credentials stored on your machine. It does not terminate sessions in the IBM Cloud console, other CLI installations, or revoke any active API keys. Ensure you have your credentials handy to log back in when needed. This command also requires network connectivity to potentially validate the logout or clear any remote session caches, although its primary action is local.

HISTORY

The ability to manage sessions, including logging out, has been a core feature since the early days of the IBM Cloud CLI (and its predecessors like the Bluemix CLI). The logout command has maintained its consistent functionality and simple syntax, reflecting its fundamental role in security and user experience across various iterations of the CLI. Its development has focused on reliability and secure local credential management.

SEE ALSO

ibmcloud login, ibmcloud target, ibmcloud api

Copied to clipboard