---
title: "codespar pix-keys"
description: "Pix keys of a consumer's own account: list, register, delete (with --confirm)"
---

Pix keys of a consumer's own account: list, register, delete (with --confirm)

3 commands in `@codespar/cli 0.22.1`.

Each one prints what its operation answered. [What a command prints](/docs/cli/reference#what-a-command-prints) has the rule, and [Configuration](/docs/cli/config#what-a-script-gets-when-a-command-fails) has the exit codes and the shape of a failure.

### `codespar pix-keys list`

List the account's Pix keys, read from the bank

```bash
codespar pix-keys list [options]
```

| option | what it does |
|---|---|
| `--consumer <id>` | The consumer whose account (a Test project's own account is sbx_\<projectId>) |

### `codespar pix-keys register`

Register one Pix key; a random key (EVP) by default, the only type a Test project's own account takes

```bash
codespar pix-keys register [options]
```

| option | what it does |
|---|---|
| `--consumer <id>` | The consumer whose account |
| `--type <type>` | EVP | CPF | CNPJ | EMAIL | PHONE (default EVP) |
| `--key <value>` | The key value for CPF, CNPJ, EMAIL or PHONE |

### `codespar pix-keys delete`

Delete one Pix key; sends nothing without --confirm

```bash
codespar pix-keys delete [options] <key>
```

| option | what it does |
|---|---|
| `--consumer <id>` | The consumer whose account |
| `--confirm` | You confirmed: after it is deleted, the key no longer points to this account |
