Skip to main content

CLI Reference

Usage

conalyz [mode] [options] [-- flutter-run-args]

Modes

ModeDescription
staticAnalyse source code directly — no device or token needed
captureRecord a live session → generates conalyz.yaml (Android only)
manualNavigate the app yourself, name each screen at the prompt
autoDrive the app automatically using a conalyz.yaml config file
labOpen a live interactive window to experience the app as users with disabilities do
loginStore a Conalyz token — required before using runtime modes
logoutRemove the stored token

Omitting the mode shows an interactive menu. Passing --dir without a mode defaults to static.

lab runs in app mode inside a Flutter project (or with --dir), and in device mode elsewhere — letting you audit any app on a connected device. See Lab Mode.


Options

FlagShortDefaultDescription
--help-hShow help and exit
--platform-tmobileTarget platform for static mode: mobile or web. Ignored in runtime modes.
--config-cconalyz.yamlConfig file — output path for capture, input path for auto
--output-o. (current directory)Directory to write reports into
--html / --no-htmlonGenerate the HTML report
--json / --no-jsononGenerate the JSON report

Everything after -- is forwarded verbatim to flutter run:

conalyz auto -- --device-id emulator-5554 --dart-define=ENV=prod

Examples

# Activate a token (required for runtime modes)
conalyz login cnlyz_...

# Remove stored token
conalyz logout

# Show mode menu
conalyz

# Static analysis — no device needed (mobile platform by default)
conalyz static

# Static analysis with web-specific checks
conalyz static --platform web

# --dir without a mode defaults to static
conalyz --dir .
conalyz --dir ./my-app

# Capture mode — record a session, generates conalyz.yaml (Android)
conalyz capture

# Manual mode — navigate the app yourself
conalyz manual

# Lab mode — live interactive window (app mode in a Flutter project, device mode elsewhere)
conalyz lab

# Automated mode — driven by conalyz.yaml in the current directory
conalyz auto

# Automated mode with a custom config file
conalyz auto --config flows/staging.yaml

# Write reports to a specific directory
conalyz auto --output ./reports

# JSON report only — skip HTML
conalyz auto --no-html

# Target a specific device
conalyz auto -- --device-id emulator-5554

# Custom dart-define
conalyz auto -- --device-id emulator-5554 --dart-define=ENV=prod

Output files

By default, reports are written to the current directory:

conalyz_report.html
conalyz_report.json

With --output ./reports:

reports/conalyz_report.html
reports/conalyz_report.json

The output directory is created automatically if it does not exist.