Installing edbctl v1.3
Prerequisites
Obtain your EDB subscription token:
The
pgai-platformrepository requires a token to enable downloads. To obtain your token, log in to EDB Repos 2.0. If this is your first time visiting the EDB Repos 2.0 page, you must select Request Access to generate your token. Once a generated token is available, select the Copy icon to copy it to your clipboard or the eye icon to view it.Set the
EDB_SUBSCRIPTION_TOKENenvironment variable:Once you have the token, execute the following command, substituting your token for
<your-token>:# For Linux or macOS export EDB_SUBSCRIPTION_TOKEN=<your-token>
Install the package
Run the appropriate commands for your operating system.
Debian or Ubuntu
On Debian or Ubuntu, you can install HM CLI using the apt package manager.
curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/pgai-platform/setup.deb.sh" | sudo -E bash
If this command returns an error like curl: (22) The requested URL returned error: 404, check that you entered the correct token.
When the command is successful, you'll see output like this:
Executing the setup script for the 'enterprisedb/pgai-platform' repository ...
...You can now install the edbctl package using the command:
sudo apt-get install edbctl
RHEL, Rocky, AlmaLinux, or Oracle Linux
On RHEL, Rocky, AlmaLinux, or Oracle Linux, you can install HM CLI using the yum package manager.
You can also use the dnf package manager, which is the default package manager for RHEL 8 and later.
curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/pgai-platform/setup.rpm.sh" | sudo -E bash
If this command returns an error like curl: (22) The requested URL returned error: 404, check that you entered the correct token.
When the command is successful, you'll see output like this:
Executing the setup script for the 'enterprisedb/pgai-platform' repository ...
...You can now install the edbctl package using the command:
sudo dnf install edbctl
sudo yum install edbctl
- On this page
- Prerequisites
- Install the package