LinuxCommandLibrary

pulumi-logout

Log out of Pulumi service

TLDR

Log out of a specific cloud backend

$ pulumi logout [url]
copy

Log out of all backends simultaneously
$ pulumi logout --all
copy

Log out of using local mode
$ pulumi logout [[-l|--local]]
copy

Display help
$ pulumi logout [[-h|--help]]
copy

SYNOPSIS

pulumi logout [flags]

PARAMETERS

--all
    Logs out of all configured backends.

--cloud-url string
    Logs out of the backend at the specified URL (e.g., --cloud-url pulumi.com or --cloud-url https://app.pulumi.com).
If not specified, the current backend is used.

-v, --verbose
    Enable verbose logging.

DESCRIPTION

The pulumi-logout command is used to disconnect the Pulumi CLI from the Pulumi Cloud or a self-hosted Pulumi backend.
This is useful when you want to switch to a different Pulumi account, a different backend (e.g., using local state), or if you are experiencing authentication issues.
It removes the stored credentials for the currently configured backend.
Subsequent pulumi up, pulumi refresh, and other commands requiring authentication will prompt you to log in again. This command does not delete any projects or stacks; it only affects the CLI's authentication status.

CAVEATS

If you are using a self-hosted Pulumi backend, ensure you know the correct URL to log out from using the --cloud-url flag. Otherwise, you may be unable to connect to it later without manual configuration.

USAGE EXAMPLES

Logout of the current Pulumi Cloud:
pulumi logout

Logout of all Pulumi backends:
pulumi logout --all

Logout of a specific Pulumi Cloud URL:
pulumi logout --cloud-url https://my-pulumi-backend.example.com

SEE ALSO

pulumi login(1)

Copied to clipboard