Skip to content

Quick Start

Get your FastAPI application deployed in minutes with FastAPI Cloud! This guide will walk you through creating and deploying your first app.

There are two ways to get started: using fastapi-new for a quick setup, or manually setting up your project if you prefer more control.

Create a new FastAPI project with a single command:

Terminal window
uvx fastapi-new myapp
cd myapp

This will create a new directory with a complete project structure, including a basic sample FastAPI application and project configuration. It will also add fastapi[standard] as a dependency, which includes the FastAPI Cloud CLI needed for deployment.

By default, fastapi-new uses the global Python version you’ve pinned with uv. To specify a different Python version for your project, use the -p/--python option:

Terminal window
uvx fastapi-new myapp --python 3.11
cd myapp

Activate the virtual environment:

Terminal window
source .venv/bin/activate

Authenticate with your FastAPI Cloud account:

Terminal window
fastapi login

This will open your browser to complete the authentication process.

Deploy your application with a single command:

Terminal window
fastapi deploy

The CLI will automatically detect your FastAPI app and deploy it to the cloud.

Deploying to FastAPI Cloud...
🚀 Preparing for liftoff! Almost there...
✅ Deployment successful!
🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev

🚀 Your app is now live: https://myapp.fastapicloud.dev

FastAPI automatically generates interactive API documentation. Visit your app’s /docs endpoint to explore the API:

https://myapp.fastapicloud.dev/docs

Check your application logs in the FastAPI Cloud dashboard:

  • Go to FastAPI Cloud Dashboard.
  • Go to Apps in the left sidebar.
  • Select your app to view its details.
  • Click on the Logs tab to see real-time application logs.

You’ve successfully deployed your first FastAPI application to the cloud.

You code. We cloud.