Skip to content

Installation

Necro requires Node.js ≥ 20.

Install the global necro command:

Terminal window
npm install -g @manehorizons/necro
necro scan src/

Or run it without installing — ideal for agents and CI:

Terminal window
npx -y @manehorizons/necro scan src/

The rest of this guide writes commands as necro …; substitute npx -y @manehorizons/necro … if you prefer not to install globally.

Terminal window
git clone https://github.com/manehorizons/necro
cd necro
npm install
npm run build

This produces a bundled CLI at dist/cli.js; run it with node dist/cli.js scan src/.

Terminal window
necro --version
necro scan --help

Next: run your first scan in the Quickstart.