Windows is not supported. Please use WSL (Windows Subsystem for Linux) or a Linux VM.
- Linux (AMD64, ARM64)
- macOS (Apple Silicon)
macOS (Apple Silicon)
- Homebrew (Recommended)
- Pre-built Binary
Install pgschema using Homebrew:To update to the latest version:
Debian/Ubuntu (DEB)
Install pgschema using the DEB package on Debian, Ubuntu, or other Debian-based distributions:- AMD64
- ARM64
Replace
v1.0.0 and 1.0.0 with the latest release version.RedHat/Fedora (RPM)
Install pgschema using the RPM package on RedHat, Fedora, CentOS, or other RPM-based distributions:- AMD64
- ARM64
Replace
v1.0.0 and 1.0.0 with the latest release version.Pre-built Binaries (Linux)
For Linux systems without package manager support, download pre-built binaries from the GitHub releases page.- Linux AMD64
- Linux ARM64
Replace
v1.0.0 with the latest release version.Docker
Run pgschema using Docker without installing it locally:Important Docker Usage Notes:
- Use
--network hostwhen connecting to databases on localhost/127.0.0.1 - Mount volumes with
-v "$(pwd):/workspace"to access local schema files - Files inside the container should be referenced with
/workspace/prefix
Go Install
If you have Go 1.24.0 or later installed, you can install pgschema directly:$GOPATH/bin directory.
After installation, verify that pgschema is working correctly:
Build from Source
Clone the repository and build from source:Building from source requires Go 1.24.0 or later.

