CLI tool that reads a SQL file and executes the query against a specified MySQL database. Current stable version is 0.1.1 (last published in 2017). This package is a simple global command-line utility for running SQL scripts during development or database resets. It differs from similar tools like 'mysql' CLI by providing a straightforward npm-based installation and a focused set of options. However, it has no updates in years, relies on outdated dependencies, and only supports MySQL.
npm install run-sql-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install globally and run a SQL file against a MySQL database with required credentials.
Consider using mysql2 CLI or direct database client.
Switch to database-specific CLI tool for other databases.
Use npm install -g run-sql-cli
Run: npm install -g run-sql-cli (or add node_modules/.bin to PATH if installing locally)
Reinstall package: npm install -g run-sql-cli