Skip to content

Installation

Install effect-analyzer using your preferred package manager:

Terminal window
# npm
npm install effect-analyzer
# pnpm
pnpm add effect-analyzer
# yarn
yarn add effect-analyzer

ts-morph (the TypeScript AST parser that powers all static analysis) is bundled automatically.

If you want the effect-analyze command available globally, install with the -g flag:

Terminal window
npm install -g effect-analyzer

This lets you run effect-analyze from any directory without npx.

Confirm everything is set up correctly:

Terminal window
npx effect-analyze --help

You should see the CLI help output listing all available flags and formats.

The analyzer auto-detects your tsconfig.json for type information. If you need to point it at a specific config, use the --tsconfig flag:

Terminal window
npx effect-analyze ./src/program.ts --tsconfig ./tsconfig.app.json

Head to the Quick Start to analyze your first Effect program.