A CLI utility that returns the last migration ID Truffle has executed for a given network. Version 2.0.1 (latest, stable). It reads from the Truffle artifacts database (build/contracts/Migrations.json) and outputs the last migration number. Simple, single-purpose tool for Truffle developers who need to programmatically determine which migration was last run. No external dependencies beyond Node.js >=12.
npm install truffle-latest-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs the CLI tool to get the last migration ID for the 'development' network.
Ensure you have run at least one migration with Truffle on the target network.
Run 'truffle migrate' before using this tool.
Run from the root of a Truffle project directory that has truffle installed.
Run 'truffle migrate --network <network>' first.
No dependency data recorded yet.