--json for machine-readable output.
grantiva ci run
Run the full visual regression pipeline: build, capture, compare, upload.
| Flag | Description |
|---|---|
--scheme | Xcode scheme to build |
--simulator | Simulator name (e.g., “iPhone 16”) |
--bundle-id | App bundle identifier |
--skip-build | Skip building, use existing DerivedData artifacts |
--app-path | Path to pre-built .app bundle (implies —skip-build) |
- Boots simulator
- Builds the app (unless skipped)
- Installs, launches, and starts the XCUITest driver
- Captures screenshots for all configured screens
- Compares against baselines (pixel + perceptual)
- Uploads results to the Grantiva dashboard
- Posts a GitHub Check Run with results
0 if all screens pass, 1 if any fail.
grantiva diff capture
Capture screenshots without comparing.
.png files to .grantiva/captures/.
grantiva diff compare
Compare captures against baselines.
| Flag | Description |
|---|---|
--capture | Capture fresh screenshots before comparing |
.grantiva/baselines/ locally. Diff images for failures are saved to .grantiva/captures/diffs/.
grantiva diff approve
Promote current captures as new baselines.
grantiva auth login
Authenticate with Grantiva.
--api-key, opens a browser login flow. With --api-key, validates the key directly. Credentials saved to ~/.grantiva/auth.json.
grantiva auth status
Show current authentication status.
GRANTIVA_API_KEY env var first, then ~/.grantiva/auth.json.
grantiva auth logout
Remove stored credentials.
grantiva doctor
Check environment and dependencies.
grantiva driver build
Build and cache the XCUITest driver.
~/.grantiva/driver/.
grantiva driver start
Start the driver server for manual use.
22088. Blocks until interrupted.
grantiva driver stop
Stop running driver processes.
grantiva init
Generate a grantiva.yml configuration file.