> For the complete documentation index, see [llms.txt](https://service.block-pro.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://service.block-pro.net/testnet/celestia/useful-commands/key-management.md).

# Key Management

**Mocha Testnet · `mocha-5`**

The complete reference is now on [Useful Commands](/testnet/celestia/useful-commands.md#key-management).

## Key management

These are celestia-app operator accounts. DA keys use `cel-key`; consensus signing keys are separate.

### Create

Create an encrypted operator wallet; store its recovery phrase offline.

```bash
celestia-appd keys add validator --keyring-backend file
```

### Recover

Recover an existing wallet through the interactive prompt.

```bash
celestia-appd keys add validator --recover --keyring-backend file
```

### List

List local operator wallets.

```bash
celestia-appd keys list --keyring-backend file
```

### Account address

Show the account address.

```bash
celestia-appd keys show validator -a --keyring-backend file
```

### Validator address

Show the validator operator address.

```bash
celestia-appd keys show validator --bech val -a --keyring-backend file
```

### Rename

Rename the local key and use the new name in later commands.

```bash
celestia-appd keys rename validator validator-new --keyring-backend file
```
