# Overview of pg_tde CLI tools

> Choose the pg_tde-aware utilities required for encrypted data and WAL.

---

LLMS index: [llms.txt](/llms.txt)

---

> This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see [PG TDE on Mimus](/docs/tde/).

The `pg_tde` extension provides a set of command-line utilities designed specifically for operating on  encrypted data and clusters. These utilities exist in parallel with the standard PostgreSQL utilities but you **must** use them when working with data encrypted by `pg_tde`.

> [!NOTE]
> The standard PostgreSQL tools cannot operate on `pg_tde`-encrypted WAL or tables.

## New `pg_tde` specific tools {#new-pgtde-specific-tools}

These tools are introduced exclusively by `pg_tde` to support key rotation and WAL encryption workflows:

* [pg_tde_change_key_provider](/docs/tde/upstream/command-line-tools/pg-tde-change-key-provider/): change the encryption key provider for a database
* [pg_tde_archive_decrypt](/docs/tde/upstream/command-line-tools/pg-tde-archive-decrypt/): decrypts WAL before archiving
* [pg_tde_restore_encrypt](/docs/tde/upstream/command-line-tools/pg-tde-restore-encrypt/): a custom restore command for making sure the restored WAL is encrypted

## Tools for working with `pg_tde`-encrypted data {#tools-for-working-with-pgtde-encrypted-data}

These tools are modified versions of standard PostgreSQL utilities that include `pg_tde` support. You must use the `pg_tde_*` variants when working with encrypted WAL or tables:

* [pg_tde_checksums](/docs/tde/upstream/command-line-tools/pg-tde-checksums/): verify data checksums
* [pg_tde_waldump](/docs/tde/upstream/command-line-tools/pg-tde-waldump/): inspect and decrypt WAL files
* [pg_tde_basebackup](/docs/tde/upstream/how-to/backup-wal-enabled/): create base backups that include encrypted data
* pg_tde_resetwal: reset the WAL for clusters using `pg_tde`
* pg_tde_rewind: rewind clusters that use encrypted WAL
* [pg_tde_upgrade](/docs/tde/upstream/command-line-tools/pg-tde-upgrade/): perform major version upgrades of clusters with `pg_tde`

[PG.CENTER edition](https://github.com/pgsty/doc.pg.center/blob/4410c32dc9186a22859008303f474b72a779f583/content/percona/command-line-tools/cli-tools.md) · [Upstream source](https://github.com/percona/pg_tde/blob/5dd7a9e4e3599d88546f5de67ff0f4ef3fe51a9a/documentation/docs/command-line-tools/cli-tools.md)

---

Backlinks:

- [Keys and providers](/docs/tde/upstream/architecture/key-provider-management/)
- [2.0.0](/docs/tde/upstream/release-notes/release-notes-v2.0/)
