CLI Reference

Complete guide to OptiPrune command-line interface

Installation

pnpm add -D optiprune # or npm install --save-dev optiprune # or yarn add -D optiprune

Usage

Run OptiPrune from your project root:

npx optiprune

CLI Options

FlagDescriptionDefault
-r, --rootDirProject root directoryprocess.cwd()
-e, --entryEntry point patterns (glob)[]
-i, --ignorePatterns to ignore[]
--no-report-unused-exportsDisable unused export reportingfalse
--fail-onFail on confidence (high/medium/low/none)high
--jsonOutput as JSONfalse
--sarifOutput as SARIFfalse
--skip-3Skip Layer 3 (SMT Constraint Solver)false
--skip-4Skip Layer 4 (Concolic Execution Proofs)false