fastapi-cloud-apps-logs - Man Page
fastapi cloud apps create – Stream or fetch logs from your deployed app.
Synopsis
fastapi cloud apps create [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-apps-create(1), fastapi-cloud-apps-get(1), fastapi-cloud-apps-link(1), fastapi-cloud-apps-list(1), fastapi-cloud-apps-unlink(1)
Referenced By
fastapi-cloud-apps(1), fastapi-cloud-apps-create(1), fastapi-cloud-apps-get(1), fastapi-cloud-apps-link(1), fastapi-cloud-apps-list(1), fastapi-cloud-apps-unlink(1), fastapi-cloud-logs(1).