Skip to content

vip logs

Get logs from your VIP applications

Usage

vip logs [options]

Options

OptionDescription
-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 Keep fetching new logs as they are generated
-F, --format [value] Output the log lines in CSV or JSON format (defaults to “table”)
-h, --help Retrieve a description, examples, and available options for a (sub)command.
-l, --limit The maximum number of log lines (defaults to 500)
-t, --type [value] The type of logs to be returned: “app” or “batch” (defaults to “app”)
-v, --version Retrieve the version number of VIP-CLI currently installed on the local machine.

Examples

- Get the most recent app logs
$ vip @mysite.production logs

- Get the most recent batch logs
$ vip @mysite.production logs --type batch

- Get the most recent 100 log entries
$ vip @mysite.production logs --limit 100

- Get the most recent 100 log entries formatted as comma-separated values (CSV)
$ vip @mysite.production logs --limit 100 --format csv

- Get the most recent 100 log entries formatted as JSON
$ vip @mysite.production logs --limit 100 --format json

Last updated: November 18, 2024