ai agent
lifectl ai agent logs
Show the log output of a container. Reads from the container log file at ~/.lifectl/containers/<id>/agent.log. Supports log rotation (up to 5 rotated files, 10 MB each).
Synopsis
lifectl ai agent logs <name|containerId> [-n <lines>] [-f]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| <name|containerId> | string | Required | Container ID, agent name, or alias |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
| -n, --lines | number | 50 | Number of lines to show from the end of the log |
| -f, --follow | boolean | false | Stream new log lines in real time (like tail -f). Exits automatically when the container stops. |
Examples
Show last 50 lines
lifectl ai agent logs my-agent
Show last 100 lines
lifectl ai agent logs my-agent -n 100
Follow log output in real time
lifectl ai agent logs my-agent -f
Follow by container ID
lifectl ai agent logs a1b2c3d4e5f6 -f