Basic Usage
stackprobe.config.js (or defaults if no config exists).
Available Options
—json
Output results in JSON format instead of human-readable text. Useful for CI/CD pipelines and automated processing.Example:Use case:
- Parse results in CI scripts
- Generate custom reports
- Integrate with other tools
—only
Run only specific checks. Accepts a comma-separated list of check names. This overrides the Multiple checks:
only option in your config file.Available checks:deps- Dependency analysisenv- Environment variable validationlicense- License compatibility checkengine- Node.js engine version checkcircular- Circular dependency detection
—fix
Attempt to automatically fix issues where possible.Status: Coming soonExample:This flag is currently recognized by the CLI but auto-fix functionality is not yet implemented.
Combining Options
You can combine multiple flags in a single command:CI/CD Examples
GitHub Actions
.github/workflows/audit.yml
GitLab CI
.gitlab-ci.yml
Run Only Critical Checks in CI
Option Priority
When the same option is specified in multiple places, CLI flags take precedence:- CLI flags (highest priority)
stackprobe.config.js- Default values (lowest priority)
only: ['deps'] but you run:
env and license checks (CLI flag wins).
Command Structure
The full command structure is:[options] can be any combination of:
--json--only <checks>--fix