Logout Command
The fastapi cloud logout command removes your authentication credentials from FastAPI Cloud.
This is useful when you want to switch accounts or remove access from your local machine.
fastapi cloud logoutWhen successful, you’ll see:
You are now logged out! 🚀What Happens When You Logout
Section titled “What Happens When You Logout”When you run fastapi cloud logout, the CLI will:
- Delete your stored authentication credentials
- Remove system-wide access to FastAPI Cloud
But your deployments on FastAPI Cloud continue running normally. This command only affects your local CLI authentication.
The project-specific configurations in .fastapicloud directories are not removed. These link your local projects to cloud deployments and are independent of your login status.
Re-authenticating
Section titled “Re-authenticating”To use the CLI again after logging out, simply run:
fastapi loginLogout vs Unlink
Section titled “Logout vs Unlink”It’s important to understand the difference:
fastapi cloud logout- Removes system-wide authentication. You’ll need to log in again to use any FastAPI Cloud commands.fastapi cloud unlink- Removes project-specific configuration only. You remain logged in and can deploy other projects.
Related Commands
Section titled “Related Commands”fastapi login- Log in to FastAPI Cloudfastapi cloud whoami- Check your current authentication statusfastapi cloud unlink- Remove project-specific configuration