Registry / aws / fastapi-cloud-cli

fastapi-cloud-cli

JSON →
library0.15.1pypypiunverified

fastapi-cloud-cli is a command-line interface tool for deploying and managing FastAPI applications on FastAPI Cloud. It provides commands for logging in, deploying, managing environment variables, and streaming logs. The library is actively maintained, with frequent releases, and is currently at version 0.15.1.

awsdevopsweb-framework
Install & Compatibility
Where this runs
tested against v0.19.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
8/10 runs
8/10 runs
py 3.11
8/10 runs
8/10 runs
py 3.12
8/10 runs
8/10 runs
py 3.13
8/10 runs
8/10 runs
py 3.9
8/10 runs
8/10 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The `fastapi` command provides subcommands like `fastapi cloud deploy`, `fastapi cloud login`, etc.

This is primarily a CLI tool and not typically imported directly into Python code. Usage is via the `fastapi` command on the command line.

This quickstart demonstrates how to initialize a FastAPI project, create a simple FastAPI application, log in to FastAPI Cloud, and deploy the application using the `fastapi` CLI. The `fastapi[standard]` installation includes `fastapi-cloud-cli`.

# 1. Create a new FastAPI project (requires uv or pip) # Using uv (recommended): # uv init myapp # cd myapp # uv add "fastapi[standard]" # Using pip: mkdir myapp cd myapp pip install "fastapi[standard]" # 2. Create a basic FastAPI application (main.py) # (Content of main.py) # from fastapi import FastAPI # app = FastAPI() # @app.get("/") # def read_root(): # return {"message": "Hello, FastAPI Cloud!"} # 3. Log in to FastAPI Cloud (if not already logged in) # This will open a browser for authentication. # fastapi login # 4. Deploy your application # The CLI will detect your app, and for the first deployment, # it will prompt to select/create a team and app. # Ensure FASTAPI_CLOUD_TOKEN is set for CI/CD or non-interactive use. # For example: export FASTAPI_CLOUD_TOKEN=os.environ.get('FASTAPI_CLOUD_TOKEN', '') fastapi deploy
fastapi-cloud --version
Debug
Known footguns
breakingVersion 0.13.0 dropped official support for Python 3.9. Users on Python 3.9 must upgrade their Python version to 3.10 or newer.
gotchaWhen `fastapi-cloud-cli` is installed as part of `fastapi[standard]`, it may attempt to create configuration files in privileged root paths (e.g., `/.config`). This can cause deployment failures in restricted environments like some Kubernetes setups.
gotchaDeployment might fail with 'Build Failed When Installing Dependencies' if required packages do not have pre-built wheels for your specific Python version. This is common when using a very new or less common Python version.
gotchaOn Windows, the `fastapi` command might not be found in the PATH after installation, leading to 'command not found' errors.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
28 hits · last 30 days
claudebot
5
gptbot
4
amazonbot
4
ahrefsbot
3
bingbot
1
commoncrawl
1
Resources