iris check
Scores source files and prints health findings. Single-file scans are free; scanning a directory or using--staged / --changed requires Pro.
| Flag | Description |
|---|---|
<path> | File or directory to scan |
--staged | Scan staged git files only (Pro) |
--changed | Scan files changed since the last commit (Pro) |
--threshold <n> | Minimum health score 0–100; overrides .irisconfig.json |
--json | Output results as JSON |
| Exit code | Meaning |
|---|---|
0 | All files at or above threshold |
1 | One or more files below threshold |
2 | Bad arguments or config error |
iris secrets
Scans the project for hardcoded credentials, API keys, tokens, and passwords. Free — no authentication required.| Flag | Description |
|---|---|
--path <dir> | Directory to scan (defaults to current directory) |
--ignore <pattern> | Glob pattern for files to skip |
--json | Output results as JSON |
| Exit code | Meaning |
|---|---|
0 | No secrets found |
1 | Secrets found |
2 | Bad arguments |
iris deps
Pro. Audits dependencies inpackage.json, go.mod, or requirements.txt for outdated versions and known CVEs.
| Flag | Description |
|---|---|
--json | Output results as JSON |
--config <path> | Path to .irisconfig.json |
| Exit code | Meaning |
|---|---|
0 | All dependencies current |
1 | Outdated or vulnerable packages found |
2 | Bad arguments |
iris todos
Pro. Lists everyTODO, FIXME, HACK, and similar comment marker found across the project.
| Flag | Description |
|---|---|
--path <dir> | Directory to scan (defaults to current directory) |
--json | Output results as JSON |
| Exit code | Meaning |
|---|---|
0 | No findings |
1 | Findings found |
2 | Bad arguments |
iris gate
Pro. Runs a full workspace health check and exits1 if any file falls below the configured threshold. This is the recommended command for CI quality gates.
| Flag | Description |
|---|---|
--threshold <n> | Override the minimum health score; takes precedence over .irisconfig.json |
--json | Output results as JSON |
--config <path> | Path to .irisconfig.json |
--format github | Emit inline PR annotations in GitHub Actions format (added in v1.6.0) |
| Exit code | Meaning |
|---|---|
0 | All files pass |
1 | One or more files fail |
2 | Bad arguments or config error |
iris report
Pro. Runs a workspace scan and exports the results as a standalone HTML file. The output mirrors the export produced by the VS Code extension.| Flag | Description |
|---|---|
--output <path> | Output file path (default: ./iris-report.html) |
--config <path> | Path to .irisconfig.json |
| Exit code | Meaning |
|---|---|
0 | Report written successfully |
1 | Scan failed |
2 | Bad arguments |
iris hook
Installs and removes the git pre-push hook and the build gate hook — equivalent to the VS Code command palette hook commands. Thestatus subcommand is free; install and uninstall require Pro.
| Subcommand | Description |
|---|---|
status | Show whether the git and build hooks are currently installed (free) |
install git | Write the Iris block to .git/hooks/pre-push (Pro) |
install build | Wire Iris into the project build command (Pro) |
uninstall git | Remove the Iris block from .git/hooks/pre-push (Pro) |
uninstall build | Remove the Iris build entry (Pro) |
| Exit code | Meaning |
|---|---|
0 | Success |
1 | Hook operation failed |
2 | Bad arguments |
iris auth
Manages authentication credentials. See the Authentication page for the full guide.| Subcommand | Description |
|---|---|
login | Browser-based OAuth flow (interactive) |
login --token <key> | Licence token flow (non-interactive) |
status | Confirm the active session |
logout | Remove stored credentials |
iris config
Reads or writes.irisconfig.json. With no arguments, prints the resolved configuration. Pass key=value pairs to set individual settings.
| Flag | Description |
|---|---|
<key>=<value> | Set a config value (e.g. minHealthScore=80) |
--global | Read or write ~/.iris/config.json instead of the project file |
--path <dir> | Project directory to resolve config from |
| Exit code | Meaning |
|---|---|
0 | Success |
2 | Invalid key or arguments |