FASTAPI-CLOUD-LOGS(1)

πŸ“¦
version 0.24.0 Β· 2 versions
, in fedora 44

πŸ’– FASTAPI-CLOUD-LOGS πŸ’–

okay bestie, so this is a User Commands page, and it's literally about streaming or fetching logs from your deployed app. that's it, that's the whole vibe. your app is out there living its main character life and this command is how you eavesdrop on it. 🫢


✨ NAME ✨

fastapi cloud logs β€” stream or fetch logs from your deployed app. no cap, that's what it does.


🌈 SYNOPSIS 🌈

fastapi cloud logs [OPTIONS] [PATH]

πŸ‘‘ OPTIONS πŸ‘‘

so many lil switches, all of them iconic:

  • --app-id TEXT β€” the ID of the app whose logs you wanna fetch. that's your target, bestie 🎯
  • --tail, -t INTEGER β€” how many log lines to show before it starts streaming. [default: 100]
  • --since, -s TEXT β€” show logs since a specific time, like '5m', '1h', '2d'. [default: 5m]
  • --follow, -f, --no-follow β€” stream logs in real-time. if you're not about the live-stream life, use --no-follow to fetch and dip. [default: follow]
  • --json β€” print structured JSON to stdout. [env var: FASTAPI_CLOUD_JSON]
  • --help, -h β€” show a help message and exit. the classic. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • PATH β€” path to the directory with your app's pyproject.toml. if you don't say anything it just defaults to the current directory, which is lowkey convenient. 🌸

πŸ”₯ EXAMPLES πŸ”₯

here's the tea, with receipts:

# Stream logs in real-time
fastapi cloud logs
# Fetch recent logs and exit
fastapi cloud logs --no-follow
# Last 50 logs from the past hour
fastapi cloud logs --tail 50 --since 1h

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • FASTAPI_CLOUD_JSON β€” print structured JSON to stdout; literally the same as the --json option. iykyk. ✨

πŸ’œ SEE ALSO πŸ’œ

go read these too, they're all part of the friend group:


fr fr tho β€” if you just want the logs and you don't wanna sit there watching them scroll, hit --no-follow. you'll get your lines and your life back. πŸ’–

and that's a wrap! this lil page is from the August 2026 era, it's part of the fastapi-cloud-logs(1) manual and it lives under User Commands. periodt. go stream some logs bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from