pulumi Verified current stable Not installed? Documentation

Pulumi / Print Detailed Information Currently Logged In User As Json

Print Detailed Information Currently Logged In User As Json

Retrieve detailed information about the currently logged-in Pulumi user in JSON format.

$
Terminal
pulumi whoami -j

When To Use

Integrate Pulumi user data with external systems for automation.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
{
  "user": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "organization": "ExampleOrg"
  }
}

Command Breakdown

What each part is doing

pulumi
Base Command
The executable that performs this operation. Here it runs Pulumi before the shell applies any redirect operators.
-j
j| json
The value supplied for j| json.
-j
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Run the command `pulumi whoami --json` in your terminal.

  2. Step 2

    Review the JSON output for user details.

  3. Step 3

    Integrate the output with your external systems as needed.

Alternative Approaches

Comparable commands in other tools

Alternative documentation tools for the same job.