Installing PGD CLI v5
Trusted Platform Architect installs and configures PGD CLI on each PGD node, by default. If you wish to install PGD CLI on any non-PGD instance in the cluster, you simply attach the pgdcli role to that instance in TPA's configuration file before deploying. See Trusted Postgres Architect for more information.
Installing manually
You can manually install the PGD CLI on any Linux machine using .deb
and .rpm
packages available from the EDB repository. The package name is edb-pgd5-cli
. For example:
When the PGD CLI is configured by TPA, it connects automatically, but with a manual installation to a standalone EDB Postgres Distributed cluster you need to provide a connection string.
Specifying database connection strings
You can use a configuration file to specify the database connection strings for your cluster. Alternatively, you can pass the connection string directly to a command. For details, see the sample use case.
Using a configuration file
Use the pgd-cli-config.yml
configuration file to specify the database connection string for your cluster. The configuration file must contain the database connection string for at least one BDR node in the cluster. The cluster name is optional and isn't validated.
For example:
By default, pgd-cli-config.yml
is located in the /etc/edb/pgd-cli
directory. In v1, the file was named pgd-config.yml
and default location was /etc/edb
. The PGD CLI searches for pgd-cli-config.yml
in the following locations. Precedence order is high to low.
/etc/edb/pgd-cli
(default)$HOME/.edb/pgd-cli
If you rename the file or move it to another location, specify the new name and location using the optional -f
or --config-file
flag when entering a command. See the sample use case.
- On this page
- Installing manually