Logo van Fastapicloud Deploy

Fastapicloud Deploy

Organisatie
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`.

Overzicht

Uitgeverfastapicloud
Repositoryskills
Skillnaamfastapicloud-deploy
Sterren
29
Forks
0
Meegeleverde bestanden
1
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door fastapicloud op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Fastapicloud Deploy in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Fastapicloud Deploy in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Fastapicloud Deploy automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Fastapicloud Deploy niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-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`.

Waarom Fastapicloud Deploy gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Fastapicloud Deploy bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Fastapicloud Deploy in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/fastapicloud/skills/tree/main/fastapicloud-deploy. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Fastapicloud Deploy gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Fastapicloud Deploy gebruiken?

Zoveel als je wilt. Je kunt Fastapicloud Deploy gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Fastapicloud Deploy gratis?

Ja. Deze skill is door fastapicloud op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇