vip logs
Retrieve Runtime Logs from an environment.
Usage
vip logs [options]
Options
Option | Description |
---|---|
-a , --app |
Target an application. Accepts a string value for the application name or an integer for the application ID. |
-d , --debug |
Generate verbose output during command execution to help identify or fix errors or bugs. |
-e , --env |
Target an environment. Accepts a string value for the environment type. |
-f , --follow |
Output new entries as they are generated. |
-F , --format |
Render output in a particular format. Accepts “table“ (default), “csv“, “json“, and “text”. |
-h , --help |
Retrieve a description, examples, and available options for a (sub)command. |
-l , --limit |
The maximum number of entries to return. Accepts an integer value between 1 and 5000 (defaults to 500). |
-t , --type |
[value] Specify the type of Runtime Logs to retrieve. Accepts “batch” (only valid for WordPress environments). (defaults to “app”) |
-v , --version |
Retrieve the version number of VIP-CLI currently installed on the local machine. |
Examples
- Retrieve up to 500 of the most recent entries of application Runtime Logs from web containers.
$ vip @example-app.production logs
- Retrieve up to 500 of the most recent entries generated by cron tasks or WP-CLI commands from batch containers.
$ vip @example-app.production logs --type=batch
- Retrieve up to 100 of the most recent entries of application logs.
$ vip @example-app.production logs --limit=100
- Retrieve up to 800 of the most recent entries of batch logs and output them in CSV format.
$ vip @example-app.production logs --type=batch --limit=800 --format=csv
Last updated: February 19, 2025