Skip to content

Commit 19eaee8

Browse files
committed
Improve docstring
1 parent 2b2404f commit 19eaee8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • src/fastapi_cloud_cli/commands

src/fastapi_cloud_cli/commands/logs.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ def logs(
137137
help="Stream logs in real-time (use --no-follow to fetch and exit).",
138138
),
139139
) -> None:
140-
"""Stream or fetch logs from your deployed app."""
140+
"""Stream or fetch logs from your deployed app.
141+
142+
Examples:
143+
fastapi cloud logs # Stream logs in real-time
144+
fastapi cloud logs --no-follow # Fetch recent logs and exit
145+
fastapi cloud logs --tail 50 --since 1h # Last 50 logs from the past hour
146+
"""
141147
identity = Identity()
142148
with get_rich_toolkit(minimal=True) as toolkit:
143149
if not identity.is_logged_in():

0 commit comments

Comments
 (0)