Socket
Socket
Sign inDemoInstall

embedded-postgres-cli

Package Overview
Dependencies
63
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    embedded-postgres-cli

Command line interface for embedded postgres


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

embedded-postgres-cli

Command line interface for embedded postgres",

Installation

Using yarn

yarn add embedded-postgres-cli

Using npm

npm install embedded-postgres-cli

Usage

You can run the command from yarn yarn pge or simply pge if you install it globally.

pge --help

Usage: pge [options] [command]

Options:
  -h, --help       display help for command

Commands:
  start [options]  example command with default simple usage
  help [command]   display help for command

Start command

pge start --help

Usage: pge start [options] [database]

Start the PostgreSQL server

Arguments:
  database           The name of a database to create

Options:
  --user <USER>      The admin username (default: "admin")
  --password <PASS>  The admin password (default: "admin")
  --port <PORT>      The server port (default: 5432)
  --data <PORT>      The data directory (default: "/Users/aegiro/code-mine/embedded-postgres-cli/.pg-data")
  -h, --help         display help for command

Clean command

pge clean --help

Usage: pge clean [options]

Remove the data from previous run of the server

Options:
  --data <PORT>  The data directory (default: "/Users/aegiro/code-mine/embedded-postgres-cli/.pg-data")
  -h, --help     display help for command

Configuration

You can save the configuration in an RC file name .embedded-postgresrc so you don't have to add the pass and port for every invocation of the command and you can still overwrite on the command line. The file is in JSON format and all keys are optional.

example

{
  "user": "admin",
  "password": "admin",
  "port": 5432,
  "data": "",
  "databases": [
    "database_1",
    "database_1"
  ]
}

FAQs

Last updated on 27 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc