If you have Go 1.23.0 or later installed, you can install pgschema directly:
go install github.com/pgschema/pgschema@latest
This will install the latest version of pgschema to your $GOPATH/bin directory.After installation, verify that pgschema is working correctly:
# View help and check version
pgschema --help