fastapi-cloud-logs - Man Page
fastapi cloud logs – Stream or fetch logs from your deployed app.
Synopsis
fastapi cloud logs [Options] [PATH]
Options
- --app-id TEXT
ID of the app whose logs should be fetched.
- --tail, -t INTEGER
Number of log lines to show before streaming. [default: 100]
- --since, -s TEXT
Show logs since a specific time (e.g., ‘5m’, ‘1h’, ‘2d’). [default: 5m]
- --follow, -f, --no-follow
Stream logs in real-time (use --no-follow to fetch and exit). [default: follow]
- --json
Print structured JSON to stdout. [env var: FASTAPI_CLOUD_JSON]
- --help, -h
Show a help message and exit.
Arguments
- PATH
Path to the directory with your app’s pyproject.toml (defaults to current directory).
Examples
# 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; same as the --json option.
See Also
fastapi-cloud-deploy(1), fastapi-cloud-link(1), fastapi-cloud-login(1), fastapi-cloud-logout(1), fastapi-cloud-whoami(1), fastapi-cloud-unlink(1), fastapi-cloud-setup-ci(1), fastapi-cloud-env(1), fastapi-cloud-auth(1), fastapi-cloud-apps(1), fastapi-cloud-deployments(1), fastapi-cloud-teams(1)
Referenced By
fastapi-cloud(1), fastapi-cloud-apps(1), fastapi-cloud-apps-logs(1), fastapi-cloud-auth(1), fastapi-cloud-deploy(1), fastapi-cloud-deployments(1), fastapi-cloud-env(1), fastapi-cloud-link(1), fastapi-cloud-login(1), fastapi-cloud-logout(1), fastapi-cloud-setup-ci(1), fastapi-cloud-teams(1), fastapi-cloud-unlink(1), fastapi-cloud-whoami(1).