Skip to main content

tly logs

Overview

The tly logs command fetches and displays logs from your deployment's container.

Usage

tly logs <deployment-id> [options]

Arguments

ArgumentDescriptionRequired
deployment-idID of the deploymentYes

Options

OptionDescriptionDefault
-f, --followStream logs in real-timefalse
-n, --tailNumber of lines to show100

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 --follow flag

  • 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
  • tly list Find deployment IDs

  • tly deploy Deploy and check logs