tly logs
Overview
The tly logs command fetches and displays logs from your deployment's container.
Usage
tly logs <deployment-id> [options]
Arguments
| Argument | Description | Required |
|---|---|---|
deployment-id | ID of the deployment | Yes |
Options
| Option | Description | Default |
|---|---|---|
-f, --follow | Stream logs in real-time | false |
-n, --tail | Number of lines to show | 100 |
Examples
View Last 100 Lines
tly logs abc123def456
Follow Logs in Real-Time
tly logs abc123def456 --follow
Show Last 50 Lines
tly logs abc123def456 --tail 50
Output Format
Logs are displayed with timestamps and log levels:
2024-12-17T12:30:15Z INFO Server started on port 8080
2024-12-17T12:30:16Z INFO MCP server ready
2024-12-17T12:31:22Z DEBUG Received request: GET /health
2024-12-17T12:31:22Z INFO Health check OK
Use Cases
-
Debugging Diagnose deployment issues by examining error logs
-
Monitoring Watch real-time activity with
--followflag -
Health Checks Verify your MCP server is responding correctly
-
Performance Analyze request/response patterns
Tips
tip
Use Ctrl+C to exit when following logs with --follow
tip
Combine with grep to filter logs:
tly logs abc123 | grep ERROR
Related Commands
-
tly list Find deployment IDs
-
tly deploy Deploy and check logs