PIG CLI
— Postgres Install Genius, the missing extension package manager for PostgreSQL ecosystem
Quick Start
Install pig with a single command
curl -fsSL https://repo.pigsty.io/pig | bash # via Cloudflarecurl -fsSL https://repo.pigsty.cc/pig | bash # via China MirrorThen it’s ready to use, assume you want to install the pg_duckdb extension:
$ pig repo set # overwrite Linux, Pigsty + PGDG repo in one-pass!
$ pig install pg18 # install PostgreSQL 18 kernel package from official PGDG repo
$ pig install pg_duckdb -v 18 # install pg_duckdb extension for PG 18 from pigsty repo
$ pig install -y postgis timescaledb # install some extension for active postgres installation
$ pig install -y vector # use both pkg and ext name to install extensionsCLI Usage
Check sub-commands documentation with pig help <command>
Manage software repositories
Manage postgres extensions
Build extension from source
Manage pigsty installation
Manage local PostgreSQL
Manage Patroni HA cluster
Manage pgBackRest backup
Orchestrated PITR recovery
About
The pig CLI is developed by Vonng, and open-sourced under the Apache License 2.0.
You can also check the pigsty project, which makes it even smoother to deliver all these extensions in an IaC way:
Last updated on