The Trunk PostgreSQL Extension Registry, henceforth Trunk, offers a companion CLI to facilitate a user-friendly programmatic interface. This toolset lowers the barriers to building, sharing, and using PostgreSQL extensions.
The Trunk CLI can be installed using the following command:
cargo install pg-trunk
By default, the files are stored (). To confirm its proper installation, invoke the following:
trunk --version
The CLI toolkit will abstract away many complexities in extension development and installation by using the following commands:
- trunk build
- compiles extensions and supports nested dependencies.
- trunk publish
- publishes an extension to the registry, making it available for discovery and installation.
- trunk install
- download and install the extension distribution, in whichever environment trunk is run.
On the Horizon:
- trunk init
- setup your environment to build a new Postrgres extension.
- trunk test
- facilitate the automated unit and integration testing Postgres extensions.
trunk build
This command leverages pgrx to help you build compiled Postgres extensions.
Usage: trunk build [OPTIONS]
Options:
- -p, --path
trunk publish
This command allows you to publish your newly-minted Postgres extension to the Trunk registry.
Usage: trunk publish [OPTIONS] --version
Arguments:
Options:
- -v, --version
trunk install
This command allows you to install Postgres extensions from the Trunk registry.
Usage: trunk install [OPTIONS]< --version
Arguments:
Options:
- -p, --pg-config
Soon to come.