Hybrid Manager CLI - edbctl v1.3
edbctl is a command line tool (CLI) to manage Hybrid Manager (HM) resources and perform database cluster operations.
Prerequisites
Hybrid Manager CLI is available for most Linux distributions. To use edbctl, you must install the package from pgai-platform
repository.
Obtain your EDB subscription token
The pgai-platform
repository 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_TOKEN
environment variable
Once you have the token, execute the command shown for your operating system, substituting
your token for <your-token>
.
export EDB_SUBSCRIPTION_TOKEN=<your-token>
Install from the pgai-platform repository
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
Configuring the HM CLI
After installing the package, configure an access key using the credential
command. These credentials allows you to access the supported HM resources and manage them using the CLI. The CLI supports various commands for managing projects, clusters, backups, credentials, and more.
Configuration example:
edbctl credential import-access-key --name user1 --access-key your_HM_access_key --address https://YOUR_HM_INSTANCE_URL:443 edbctl config set context_project "Your Project Name"
Options
Use the edbctl --help or -h
command to find the complete list of commands available:
edbctl --help
Usage: edbctl [options] edbctl [command] Management Commands: credential Manage authentication credentials. project Manage projects associated with the database clusters. cluster Manage database cluster resources. backup Manage cluster backups. Configuration Commands: config Manages configuration settings for edbctl tool help Help about any command completion Generate the autocompletion script for the specified shell Setup Commands: image Asset management commands operator Operator management commands image-pull-secret Pull Secret management commands Options: -h, --help help for edbctl -v, --version version for edbctl Use "edbctl [command] --help" for more information about a command.
More information
- edbctl credential — Manage authentication credentials.
- edbctl image — Asset management commands
- edbctl image-pull-secret — Pull secret management commands.
- edbctl operator — Operator management commands.
- edbctl project — Manage projects associated with the database clusters.
- edbctl cluster — Manage database cluster resources.
- edbctl backup — Manage cluster backups.
- edbctl config — Manage configuration settings for
edbctl
tool.
edbctl backup
Use the edbctl utility to manage backups for a Hybrid Manager cluster.
edbctl cluster
Use the edbctl utility to manage database cluster resources for a Hybrid Manager cluster.
edbctl config
Use the edbctl utility to display or modify edbctl configuration settings.
edbctl credential
Use the edbctl utility to creates and manage authentication credentials.
edbctl image-pull-secret
Use the edbctl utility to manage pull secrets used in the bootstrapping process for Hybrid Manager.
edbctl image
Use the edbctl utility to manage and sync images for Hybrid Manager.
edbctl operator
Use the edbctl utility to manage EDB Postgres AI Operator components and artifacts.
edbctl project
Use the edbctl utility to manage projects for organizing clusters and resources for Hybrid Manager.
- On this page
- Prerequisites
- Options
- More information