Skip to content

vip logs [options]

Retrieve application or batch logs from an environment

Options

ArgumentDescription
-a, --appSpecify the app
-d, --debugActivate debug output
-e, --envSpecify the environment
-f, --followKeep fetching new logs as they are generated
-F, --format [value]Output the log lines in CSV or JSON format (defaults to “text”)
-h, --helpOutput the help for the (sub)command
-l, --limit <n>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, --versionOutput the version number

Examples

   # Retrieve the most recent application 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

Global Options

ArgumentDescription
-a, --app=<app>Specify the app
-d, --debugActivate debug output
-e, --env=<env>Specify the environment
-h, --helpOutput the help for the (sub)command
-v, --versionOutput the version number
-y, --yesRun the command in production without a confirmation prompt

Last updated: December 17, 2022