This command is marked as unstable and may change in future releases.
Command: phala logs
Syntax
phala logs [options] [<container-name>]
Description
Fetch logs from a CVM
Arguments
| Argument | Description |
|---|
<container-name>? | Container name to fetch logs from |
Options
| Option | Description |
|---|
--serial | CVM serial console (boot, kernel, docker-compose) |
--cvm-stdout | CVM stdout channel |
--cvm-stderr | CVM stderr channel |
--stderr | Include container stderr (container mode only) |
-n, --tail <value> | Number of lines from end |
-f, --follow | Stream in real-time |
-t, --timestamps | Show timestamps |
--since SINCE | Start time (RFC3339 or relative, e.g. 42m) |
--until UNTIL | End time (RFC3339 or relative) |
--cvm-id <value> | CVM identifier (UUID, app_id, instance_id, or name) |
-i, --interactive | Enable interactive mode |
Global Options
| Option | Description |
|---|
-h, --help | Show help information for the current command |
-v, --version | Show CLI version |
--api-token TOKEN, --api-key TOKEN | API token used for authentication |
-j, --json, --no-json | Output in JSON format |
--api-version <value> | API version to use (e.g. 2025-10-28, 2026-01-21) |
Examples
phala logs my-service --stderr
phala logs my-service -n 100
phala logs my-service --cvm-id app_abc123