Skip to content

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.

Terminal window
fastapi cloud logout

When successful, you’ll see:

You are now logged out! 🚀

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.

To use the CLI again after logging out, simply run:

Terminal window
fastapi login

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.
  • fastapi login - Log in to FastAPI Cloud
  • fastapi cloud whoami - Check your current authentication status
  • fastapi cloud unlink - Remove project-specific configuration