Skip to main content
VertaaUX Docs
CLICommands

audit

Run UX and accessibility audits from the command line

vertaa audit

Run UX and accessibility audits on websites, local servers, or Storybook instances.

Synopsis

vertaa audit [options]

Description

The audit command is the primary way to run UX audits. It analyzes a URL for usability, accessibility, information architecture, and performance issues, returning a score and detailed findings.

Quick Examples

Basic audit
$vertaa audit -u https://example.com
Deep audit with JSON output
$vertaa audit -u https://example.com --mode deep --format json -o results.json
CI mode with quality gates
$vertaa audit -u https://example.com --fail-on error --threshold 80

Options

Input Options

Input
ParameterTypeRequiredDescription
-u, --urlstringrequiredURL to audit. Can be a public URL, localhost, or file:// URL
--repostringoptionalGitHub repository to audit (format: owner/repo)
--storybookstringoptionalStorybook URL to audit component stories
--routesstringoptionalComma-separated list of routes to audit (e.g., /,/about,/contact)

Audit Mode

Mode
ParameterTypeRequiredDescription
--modestringoptionalAudit depth: basic (fast, core checks), standard (balanced), deep (thorough, slower)Default: basic
--budgetstringoptionalTime budget: quick (30s), standard (60s), full (120s+)Default: standard

Mode Comparison:

ModeChecksTimeBest For
basic~50 rules~10sQuick feedback, local dev
standard~150 rules~30sBalanced analysis, CI
deep~300 rules~60s+Full audit, releases

Output Options

Output
ParameterTypeRequiredDescription
--formatstringoptionalOutput format: human, json, sarif, junit, html, autoDefault: human
-o, --outputstringoptionalWrite results to file instead of stdout
--group-bystringoptionalGroup results by: severity, category, routeDefault: severity

Format Details:

FormatUse CaseNotes
humanTerminal displayColored output, default
jsonProgrammatic processingFull data structure
sarifIDE/GitHub code scanningSARIF 2.1.0 compliant
junitTest framework integrationJUnit XML format
htmlShareable reportsSelf-contained HTML
autoContext-awareUses human for TTY, json otherwise

Filtering Options

Filtering
ParameterTypeRequiredDescription
--severitystringoptionalFilter by severity levels (comma-separated): error, warning, info
--categorystringoptionalFilter by categories: ux, accessibility, ia, performance

Quality Gate Options

Quality Gates
ParameterTypeRequiredDescription
--fail-onstringoptionalExit with code 1 when issues of this severity found: error, warning, info, noneDefault: none
--thresholdnumberoptionalExit with code 3 if overall score below this value (0-100)
--max-new-errorsnumberoptionalExit with code 1 if more than N new errors (requires --baseline)
--max-new-warningsnumberoptionalExit with code 1 if more than N new warnings (requires --baseline)

Baseline Options

Baseline
ParameterTypeRequiredDescription
--baselinestringoptionalPath to baseline file for comparison
--incrementalbooleanoptionalOnly audit routes changed in the PR (requires CI context)Default: false

Execution Options

Execution
ParameterTypeRequiredDescription
--waitbooleanoptionalWait for audit to complete before returningDefault: true
--no-waitbooleanoptionalReturn immediately after queueing (get results later via status command)
--concurrencynumberoptionalMaximum concurrent page auditsDefault: 3
--timeoutnumberoptionalTimeout per page in millisecondsDefault: 60000

Debug Options

Debug
ParameterTypeRequiredDescription
--save-tracebooleanoptionalSave Playwright trace to .vertaaux/traces/
--save-harbooleanoptionalSave HAR network log to .vertaaux/har/
--screenshotsbooleanoptionalSave page screenshots to .vertaaux/screenshots/
--dom-snapshotsbooleanoptionalSave DOM snapshots for debugging
--upload-artifactsbooleanoptionalUpload all artifacts to cloud storage

CI/CD Options

CI/CD
ParameterTypeRequiredDescription
--json-logsbooleanoptionalOutput structured JSON logs for CI parsing
--policystringoptionalPath to policy file (vertaa.policy.yml)

Monorepo Options

Monorepo
ParameterTypeRequiredDescription
--workspacestringoptionalTarget specific workspace in a monorepo
--all-workspacesbooleanoptionalAudit all workspaces in the monorepo

Exit Codes

CodeMeaning
0Success - audit completed, no quality gate failures
1Issues found matching --fail-on severity or --max-new-* exceeded
2Error - audit failed to complete (network error, invalid URL, etc.)
3Score below --threshold value

Examples

Basic Usage

Audit a public website:

$vertaa audit -u https://example.com

Audit localhost during development:

$vertaa audit -u http://localhost:3000

CI/CD Integration

Fail the build if any errors are found:

$vertaa audit -u $PREVIEW_URL --fail-on error

Fail if score drops below 80:

$vertaa audit -u $PREVIEW_URL --fail-on error --threshold 80

Output JSON for CI parsing:

$vertaa audit -u $PREVIEW_URL --format json --json-logs

Baseline Comparison

Compare against a baseline and fail on new issues:

$vertaa audit -u https://example.com --baseline baseline.json --max-new-errors 0

Deep Analysis

Run a thorough audit with all debug artifacts:

Deep audit with traces and screenshots
$vertaa audit -u https://example.com --mode deep --save-trace --screenshots

Multiple Routes

Audit specific routes:

$vertaa audit -u https://example.com --routes /,/about,/pricing,/contact

Storybook Audit

Audit Storybook components:

$vertaa audit --storybook http://localhost:6006

Filtered Output

Only show accessibility errors:

$vertaa audit -u https://example.com --category accessibility --severity error

SARIF Output

Generate SARIF for GitHub code scanning:

$vertaa audit -u https://example.com --format sarif -o results.sarif

Sample Output

VertaaUX CLI v1.0.0

Auditing: https://example.com
Mode: standard

[====================================] 100%

Audit Complete
──────────────────────────────────────────────
Overall Score: 85/100

Scores by Category:
  UX:                    88/100
  Accessibility:         82/100
  Information Arch:      87/100
  Performance:           83/100

Issues Found: 12
  Errors:    2
  Warnings:  7
  Info:      3

Top Issues:
  [ERROR] Missing alt text on hero image
          at img.hero-image
          Fix: Add descriptive alt attribute

  [ERROR] Color contrast ratio 3.2:1 below 4.5:1 minimum
          at .button-secondary
          Fix: Increase contrast to at least 4.5:1

  [WARN]  No skip link for keyboard navigation
          at body
          Fix: Add skip link as first focusable element

  [WARN]  Touch target 32x32px below 44x44px minimum
          at .nav-link
          Fix: Increase touch target to 44x44px

Full results: https://vertaaux.ai/reports/abc123

Also available

Was this page helpful?

On this page