Skip to content

Whoami Command

The fastapi cloud whoami command displays your current authentication status and user information.

This is useful for checking which account you’re logged in with.

Terminal window
fastapi cloud whoami

If you’re logged in, you’ll see your email address:

⚡ user@example.com

If you’re not logged in, you’ll see:

No credentials found. Use `fastapi login` to login.

When you run fastapi cloud whoami, the CLI will:

  • Check if you have valid authentication credentials
  • Fetch your user profile from FastAPI Cloud
  • Display your email address

You might want to use this command to:

  • Verify authentication - Check if you’re currently logged in
  • Confirm account - Verify which account you’re using
  • Before deploying - Make sure you’re logged in with the correct account

If you see this message, you need to log in:

Terminal window
fastapi login

If your credentials have expired, you’ll need to log in again:

Terminal window
fastapi logout
fastapi login
  • fastapi login - Log in to FastAPI Cloud
  • fastapi cloud logout - Log out from FastAPI Cloud
  • fastapi deploy - Deploy an application (requires authentication)