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.

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
Output
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 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.