A CLI for PGlite instances.
npm install pglite-cliA CLI for PGlite.
This is currently _very_ simple, it doesn't even format the output nicely.
You probably want to install this globally:
``sh`
npm i -g pglite-cli
(Feel free to omit -g if you'd prefer a non-global installation.)
`sh`
pgl [DATABASE_PATH] [SQL_COMMAND]
- DATABASE_PATH: the path to your PGlite database. If this is omitted, the CLI will prompt you to enter one. If the path you provide doesn't exist on the filesystem, a new PGlite instance will be created at the path you provide.SQL_COMMAND`: if provided, this command will be run and nothing else will execute. If omitted, you will be dropped into a REPL.
-
API reference docs: https://electrovir.github.io/pglite-cli