UI Inspect
CLI Reference

CLI Overview

The ui-inspect CLI provides visual regression testing from your terminal and CI/CD pipelines.

Installation

pnpm add -D @ui-inspect/cli

Commands

Global options

FlagDescription
--versionShow CLI version
--helpShow help for any command

Environment variables

VariableRequiredDescription
UI_INSPECT_TOKENYesAPI authentication token
UI_INSPECT_API_URLNoOverride API server URL
UI_INSPECT_PROJECT_IDNoOverride project ID from config

Configuration

The CLI reads from ui-inspect.config.yml in your project root. See Configuration for the full spec.

Exit codes

CodeMeaning
0Success, no regressions
1Visual regressions found (when --fail-on-diff is set)
2Configuration or authentication error

On this page