Install and manage the AlloyDB Omni CLI

Select a documentation version:

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

The specific commands needed to install the AlloyDB Omni CLI depend on your Linux distribution.

Install 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

Install 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

Update the AlloyDB Omni CLI

The specific commands needed to update the AlloyDB Omni CLI depend on your Linux distribution.

Update on Debian or Ubuntu

sudo apt-get update sudo apt-get install alloydb-cli

Update on RHEL

sudo yum makecache sudo yum install alloydb-cli -y

Uninstall the AlloyDB Omni CLI

The specific commands needed to uninstall the AlloyDB Omni CLI depend on your Linux distribution.

Uninstall from Debian or Ubuntu

sudo apt-get remove alloydb-cli

Uninstall from RHEL

sudo yum remove alloydb-cli

What's next