Registry / database / run-sql-cli

run-sql-cli

JSON →
library0.1.1jsnpmunverified

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.

database
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Must be installed globally for CLI usage. Not importable in code.

npm install -g run-sql-cli

This package is CLI-only; cannot be imported as a module.

No programmatic API; only CLI.

Install globally and run a SQL file against a MySQL database with required credentials.

npm install -g run-sql-cli run-sql ./schema.sql --user=root --password=root --database=my_db
Debug
Known footguns
deprecatedPackage is unmaintained since 2017.
gotchaOnly supports MySQL; no support for PostgreSQL, SQLite, etc.
gotchaRequires global installation with -g flag; local install does not expose command.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
14 hits · last 30 days
mj12bot
6
gptbot
3
ahrefsbot
1
Resources