Skip to main content

CLI Reference

vlayer provides a command-line interface for scanning projects and generating reports.

Basic Usage​

vlayer <command> [options]

Available Commands​

CommandDescription
scanScan a directory for HIPAA compliance issues
fixAuto-fix common compliance issues
reportGenerate reports from previous scans

Global Options​

These options work with all commands:

OptionDescription
-v, --versionShow version number
-h, --helpShow help
--verboseEnable verbose output
--quietSuppress non-essential output
--no-colorDisable colored output

Examples​

# Show version
vlayer --version

# Get help for a command
vlayer scan --help

# Run a scan with verbose output
vlayer scan . --verbose

# Quiet mode for CI
vlayer scan . --quiet

Configuration File​

vlayer can be configured via a .vlayerrc.json or vlayer.config.js file in your project root. See Configuration for details.

Exit Codes​

CodeMeaning
0Success (no findings or only LOW)
1Findings with MEDIUM or HIGH severity
2Findings with CRITICAL severity
3Error during execution

Use exit codes in CI/CD pipelines:

vlayer scan . && echo "Compliant!" || echo "Issues found"