Skip to content

Browse: Home / VIP-CLI Commands / vip validate / vip validate preflight

vip validate preflight [options]

Scan a Node.js codebase to identify issues that could prevent application code from building, deploying, or working as expected.

Options

ArgumentDescription
-d, --debugActivate debug output
-h, --helpOutput the help for the (sub)command
-j, --jsonOutput the results in JSON format
-n, --node-versionSelect a specific target Node.JS version in semver format (MAJOR.MINOR.PATCH) or a MAJOR
-P, --pathPath to the app to be tested, defaults to current directory
-p, --portConfigure the port to use for the app (defaults to a random port between 3001 and 3999)
-w, --waitConfigure the time to wait in ms for the app to boot up (defaults to 3000ms)
-V, --verboseIncrease logging level to include app build and server boot up messages
-v, --versionOutput the version number

Examples

  # Scan a Node.js codebase from within the codebase directory on the local machine
    $ vip @mysite.develop validate preflight
  # Scan a Node.js codebase and specify the path to the codebase on the local machine
    $ vip @mysite.develop validate preflight --path=/Users/example-user/codebase

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: November 28, 2022