CLI Reference
Complete guide to OptiPrune command-line interface
Installation
pnpm add -D optiprune # or npm install --save-dev optiprune # or yarn add -D optipruneUsage
Run OptiPrune from your project root:
npx optipruneCLI Options
| Flag | Description | Default |
|---|---|---|
-r, --rootDir | Project root directory | process.cwd() |
-e, --entry | Entry point patterns (glob) | [] |
-i, --ignore | Patterns to ignore | [] |
--no-report-unused-exports | Disable unused export reporting | false |
--fail-on | Fail on confidence (high/medium/low/none) | high |
--json | Output as JSON | false |
--sarif | Output as SARIF | false |
--skip-3 | Skip Layer 3 (SMT Constraint Solver) | false |
--skip-4 | Skip Layer 4 (Concolic Execution Proofs) | false |