Select a documentation version: <button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">15.5.2</button>

- [15.5.2](https://docs.cloud.google.com/alloydb/omni/kubernetes/15.5.2/docs/omni-cli.md.txt)

<br />

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.

<br />

## 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:

```bash
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:

```bash
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

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

### Update on RHEL

```bash
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

```bash
sudo apt-get remove alloydb-cli
```

### Uninstall from RHEL

```bash
sudo yum remove alloydb-cli
```

## What's next

- [Install AlloyDB Omni](https://docs.cloud.google.com/alloydb/omni/kubernetes/15.5.2/docs/install.md.txt)

- [Run and connect to AlloyDB Omni](https://docs.cloud.google.com/alloydb/omni/kubernetes/15.5.2/docs/run-connect.md.txt)

- [Manage AlloyDB Omni](https://docs.cloud.google.com/alloydb/omni/kubernetes/15.5.2/docs/manage.md.txt)

- [Create a read-only replica](https://docs.cloud.google.com/alloydb/omni/kubernetes/15.5.2/docs/set-up-read-replica.md.txt)