Skip to content

dahlia/pglite-cli

 
 

Repository files navigation

pglite-cli

A CLI for PGlite.

This is currently very simple, it doesn't even format the output nicely.

Install

You probably want to install this globally:

npm i -g pglite-cli

(Feel free to omit -g if you'd prefer a non-global installation.)

Usage

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

About

CLI for PGlite instances on your file system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 78.9%
  • JavaScript 21.1%