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.
fastapi cloud whoamiWhat You’ll See
Section titled “What You’ll See”When Logged In
Section titled “When Logged In”If you’re logged in, you’ll see your email address:
When Not Logged In
Section titled “When Not Logged In”If you’re not logged in, you’ll see:
No credentials found. Use `fastapi login` to login.What This Command Does
Section titled “What This Command Does”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
When to Use This Command
Section titled “When to Use This Command”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
Troubleshooting
Section titled “Troubleshooting”Error: No credentials found
Section titled “Error: No credentials found”If you see this message, you need to log in:
fastapi loginCredentials Expired
Section titled “Credentials Expired”If your credentials have expired, you’ll need to log in again:
fastapi logoutfastapi loginRelated Commands
Section titled “Related Commands”fastapi login- Log in to FastAPI Cloudfastapi cloud logout- Log out from FastAPI Cloudfastapi deploy- Deploy an application (requires authentication)