Install and manage the AlloyDB Omni CLI

The AlloyDB Omni CLI is a command-line tool that lets you install, run, and manage AlloyDB Omni. You can download and install it at no cost by using various Linux package-management tools.

Install the AlloyDB Omni CLI on Debian or Ubuntu

To install the AlloyDB Omni CLI on Debian, or on Debian-based Linux distributions such as Ubuntu, run the following commands:

curl https://REGION-apt.pkg.dev/doc/repo-signing-key.gpg | sudo apt-key add -
sudo apt update
echo "deb https://REGION-apt.pkg.dev/projects/alloydb-omni alloydb-omni-apt main" \
  | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list
sudo apt update
sudo apt-get install alloydb-cli

Replace REGION with one of the following:

  • asia
  • europe
  • us

Uninstall the AlloyDB Omni CLI from Debian or Ubuntu

sudo apt-get remove alloydb-cli

Install the AlloyDB Omni CLI on RHEL

To install the AlloyDB Omni CLI on Red Hat Enterprise Linux (RHEL), run the following commands:

sudo tee -a /etc/yum.repos.d/artifact-registry.repo << EOF
[alloydb-omni-yum]
name=alloydb-omni-yum
baseurl=https://REGION-yum.pkg.dev/projects/alloydb-omni/alloydb-omni-yum
enabled=1
repo_gpgcheck=0
gpgcheck=0
EOF
sudo yum makecache
sudo yum --enablerepo=alloydb-omni-yum install -y alloydb-cli

Replace REGION with one of the following:

  • asia
  • europe
  • us

Uninstall the AlloyDB Omni CLI from RHEL

sudo yum remove alloydb-cli

What's next