Generate multiple PostgreSQL connection strings/databases using CLI for development environments!
https://github.com/nrjdalal/pglaunch.git
Generate multiple PostgreSQL connection strings/databases using CLI for development environments!
π¦ Zero Config / Lightweight / Easy-to-Use CLI for spinning up disposable PostgreSQL containers
#### Instantly launch a disposable lightweight PostgreSQL container with a unique database and connection URL - no Docker expertise required.
# Launch a Postgres container using the current directory name
npx pglaunch
# Specify a custom name (defaults to current directory name)
npx pglaunch -n my-project
# Specify a custom port (defaults to a random available port)
npx pglaunch -p 5433
# Keep the container (container are removed on exit/system-restart by default)
npx pglaunch -k
# Confirm launching a second container with the same base name
npx pglaunch -n my-project -c
# View help message
npx pglaunch -h
# View version
npx pglaunch -v
postgres:alpine Docker container with sensible defaults.-p, PGLaunch finds an available port for you.-c to confirm.-k (keep) to persist them.npx pglaunch [options]
[options] are optional, if not specified, PGLaunch will use sensible defaults based on the current directory name and a random available port.-n, --name <name> Name for PostgresSQL database
(default: current directory name)
-p, --port <port> Port for PostgresSQL database
(default: random available port)
-k, --keep Keep the container after exit
(default: false)
-c, --confirm Confirm starting another container with the same name
-v, --version Display version
-h, --help Display help
docker --version to ensure Docker is installed.docker info under the hoodβif the daemon isnβt running, youβll see a prompt to start it.- Docker is not installed. Please install Docker and try again.
Download it here: https://docs.docker.com/desktop
- Docker is installed but not running.
Please start the Docker application/daemon and try again.
npm install -g pglaunch
pglaunch [options]
Check out more projects at github.com/nrjdalal
MIT β LICENSE