The CLI of @metamask/wallet
yarn add @metamask/wallet-cli
or
npm install @metamask/wallet-cli
This package depends on better-sqlite3, which ships a native C addon. The monorepo runs Yarn with enableScripts: false, so the addon is not fetched automatically during yarn install. Instead, the package's test:prepare script (scripts/install-binaries.sh) downloads the matching prebuild on demand the first time you run tests, falling back to compiling the addon from source (via node-gyp) when no prebuild is published for your Node ABI/platform.
If you switch Node versions or branches and the binding is missing, re-run:
yarn workspace @metamask/wallet-cli run test:prepareOr invoke prebuild-install directly from the monorepo root (where better-sqlite3 is hoisted):
cd node_modules/better-sqlite3 && node ../.bin/prebuild-installThis package is part of a monorepo. Instructions for contributing can be found in the monorepo README.