LinuxCommandLibrary

pulumi-whoami

Show the current Pulumi user identity

TLDR

Print the username of the currently logged in user

$ pulumi whoami
copy

Print detailed information about the currently logged in user
$ pulumi whoami [[-v|--verbose]]
copy

Print detailed information about the currently logged in user as JSON
$ pulumi whoami [[-j|--json]]
copy

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

SYNOPSIS

pulumi whoami

DESCRIPTION

The `pulumi whoami` command is a CLI tool that displays the currently logged-in Pulumi user or organization. This is useful for verifying the identity under which Pulumi commands will be executed. It interacts with the Pulumi service to retrieve and display the user's information.
This command is especially valuable in environments where multiple users or organizations are managed within the same Pulumi account, allowing for quick confirmation of the active identity. Knowing which user or organization is active is crucial for resource management and permission control. It simplifies troubleshooting authentication issues and ensures commands are executed under the intended credentials. By default, it prints only the username or organization name. However, it can also output the full name if it's available. This command is a crucial first step in any interaction with the Pulumi service.

CAVEATS

The `pulumi whoami` command requires the user to be logged in to the Pulumi service. If not logged in, it will return an error.

OUTPUT

The command prints the Pulumi username or organization name to standard output. If the full name is available, it might be printed as well, depending on the Pulumi service configuration.

SEE ALSO

pulumi login(1), pulumi logout(1)

Copied to clipboard