Logo: Fastapicloud Deploy

Fastapicloud Deploy

Organisatioun
fastapicloud
fastapicloud-deploy

Prepare and deploy FastAPI apps to FastAPI Cloud. Use when the user asks to deploy a project, create, link, or update a FastAPI Cloud app, log in before deployment, set up CI/CD, a GitHub Actions deploy workflow, or GitHub-linked auto-deploys, manage deploy tokens, validate deployment inputs, inspect app IDs, review `.fastapicloudignore`, or update commands that invoke `fastapi deploy` or `fastapi cloud deploy`.

Iwwersiicht

Editeurfastapicloud
Repositoryskills
Skill-Nummfastapicloud-deploy
Stären
29
Forks
0
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    fastapicloud huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Fastapicloud Deploy an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fastapicloud/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/fastapicloud-deploy .claude/skills/fastapicloud-deploy
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Fastapicloud Deploy an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Fastapicloud Deploy automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Fastapicloud Deploy net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

FastAPI Cloud Deploy

Overview

Deploy a local FastAPI project to FastAPI Cloud.

CLI Baseline

Assume the released project CLI is correct and start with the fastapi cloud ... command needed for the task, such as:

bash
uv run fastapi cloud deploy --help

Only check the CLI version after a uv run fastapi cloud ... command fails because fastapi, cloud, or the requested subcommand is missing, or because the output suggests an incompatible CLI:

bash
uv run fastapi cloud --version
uv run fastapi cloud --help

If fastapi is missing or the cloud command surface is stale, install or update fastapi[standard]; do not install fastapi-cli directly as the executable source. The fastapi[standard] extra provides the fastapi command and the FastAPI Cloud CLI integration. These commands change project files, so ask the user before running them in an existing project.

bash
uv add -U "fastapi[standard]"
uv lock --upgrade-package fastapi --upgrade-package fastapi-cloud-cli

If there is no project environment, create a temporary uv project and install the same dependency constraints before checking the command surface.

If the project cloud CLI reports a version older than 0.21.0, update the project environment before retrying.

JSON Output

Use --json whenever the command supports it. Parse stdout directly as the CLI's structured JSON envelope; treat other stdout as an incompatible or stale command surface.

Workflow

Inspect the project:

bash
rg --files -g 'pyproject.toml' -g '.fastapicloud/**' -g '.fastapicloudignore' -g '.gitignore'
uv run fastapi cloud deploy --help

Check auth and linked app state:

bash
uv run fastapi cloud whoami --json
uv run fastapi cloud apps get --json

If auth is missing or stale, ask before starting the login flow. If the project is not linked, inspect apps first; create or link only when the user asks.

Authentication

Prefer the JSON device flow over plain login output:

bash
uv run fastapi cloud auth login --no-open --json

Surface the returned verification_uri_complete or verification_uri plus user_code to the user. Then wait with the returned device_code:

bash
uv run fastapi cloud auth wait --device-code DEVICE_CODE --interval 5 --timeout 300 --json

Deploy only after the user has requested deployment:

bash
uv run fastapi cloud deploy . --json

Use --app-id APP_ID or FASTAPI_CLOUD_APP_ID for a specific target. --json deploy output implies non-waiting behavior; for non-JSON deploy commands, use --no-wait only when the user wants the command to return before the deployment reaches a terminal state.

Check Deployment Status

After a non-waiting deploy, use the returned deployment ID to check progress:

bash
uv run fastapi cloud deployments get DEPLOYMENT_ID --app-id APP_ID --json

Inspect data.deployment.status. Successful submission is not deployment success. Unless the user requested submission only, continue checking until the deployment reaches a terminal state; report an in-progress status if you cannot establish completion.

With CLI 0.26.0 or newer, data.deployment.failure contains backend build-failure guidance when available: error_code, error_title, error_message, and error_hint. Surface the title, message, and any non-empty hint before investigating further. If guidance is absent or more detail is needed, use the fastapicloud-logs workflow:

bash
uv run fastapi cloud deployments build-logs DEPLOYMENT_ID --no-follow --json

Parse stdout even if this command exits with code 1: a failed build can still return a valid JSON result containing logs and failure guidance. Deployment inspection requires a logged-in user session; a CI deploy token alone cannot authenticate these read commands.

App Creation, Linking, And Updates

Use read commands before write commands:

bash
uv run fastapi cloud teams list --json
uv run fastapi cloud apps list --team-id TEAM_ID --json
uv run fastapi cloud apps create --team-id TEAM_ID --name APP_NAME --link --path . --json
uv run fastapi cloud link APP_ID --path . --json

For a monorepo app, pass --directory DIRECTORY to apps create. This is the app's relative directory containing pyproject.toml; --path is the local directory where linking writes configuration.

Read the app before changing its configured directory. apps update requires CLI 0.22.0 or newer:

bash
uv run fastapi cloud apps get APP_ID --json
uv run fastapi cloud apps update APP_ID --directory DIRECTORY --json

Only update app metadata when the user asks. link writes .fastapicloud/cloud.json; use --force only when replacing a known stale link.

CI And Deploy Tokens

For non-interactive deploys (CI/CD), authenticate with a deploy token instead of the device flow. These commands require CLI 0.21.0 or newer. Read before mutating:

bash
uv run fastapi cloud tokens list --app-id APP_ID --json

Create or delete tokens only when the user asks. tokens create returns the secret value once — write it to a file with --output-file or capture it directly into a CI secret; never echo it in chat or shell history. Use --expires-in-days N to bound its lifetime:

bash
uv run fastapi cloud tokens create --app-id APP_ID --name NAME --output-file PATH --json
uv run fastapi cloud tokens delete TOKEN_ID --app-id APP_ID --json

GitHub Actions

Preview the generated workflow first; print-workflow is read-only and writes no files or secrets:

bash
uv run fastapi cloud ci print-workflow --json
uv run fastapi cloud ci print-workflow --branch BRANCH

ci setup is a mutating convenience: it writes .github/workflows/deploy.yml and sets the FASTAPI_CLOUD_TOKEN and FASTAPI_CLOUD_APP_ID GitHub Actions secrets via the gh CLI (creating a deploy token in the process). Run it only when the user asks; first confirm git and gh are installed and the repo has an origin remote, then surface what it will change:

bash
uv run fastapi cloud ci setup

FastAPI Cloud also supports native GitHub deployments — linking a repository so pushes deploy automatically. This is not available through the CLI yet; tell the user to set it up from their app's settings in the FastAPI Cloud dashboard.

Deployment Inputs

  • Ensure the project has a pyproject.toml with FastAPI dependencies.
  • Inspect .fastapicloudignore and .gitignore before deploy if large files or secrets may be included.
  • Keep access tokens in environment variables or CI secrets, not source files. App IDs may be passed explicitly with --app-id when needed.
  • After deploy, report the deployment ID/status and next diagnostic command if available.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Fastapicloud Deploy?

Prepare and deploy FastAPI apps to FastAPI Cloud. Use when the user asks to deploy a project, create, link, or update a FastAPI Cloud app, log in before deployment, set up CI/CD, a GitHub Actions deploy workflow, or GitHub-linked auto-deploys, manage deploy tokens, validate deployment inputs, inspect app IDs, review `.fastapicloudignore`, or update commands that invoke `fastapi deploy` or `fastapi cloud deploy`.

Firwat Fastapicloud Deploy op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Fastapicloud Deploy besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Fastapicloud Deploy an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Fastapicloud Deploy benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Fastapicloud Deploy benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Fastapicloud Deploy domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Fastapicloud Deploy gratis?

Jo. fastapicloud huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇