---
url: https://docs.mochiexec.io/reference/cli/mochi_vault_edit.md
description: Edit the configuration of an existing vault.
---

# mochi vault edit

Edit the configuration of an existing vault.

## Synopsis

Edit the configuration of an existing vault. Note: You cannot change the vault type after creation.

```shell
mochi vault edit NAME [flags]
```

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for edit |
| `--identity-env` | `string` | Environment variable name for the Age vault identity. Only used for Age vaults. |
| `--identity-file` | `string` | File path for the Age vault identity. An absolute path is recommended. Only used for Age vaults. |
| `--key-env` | `string` | Environment variable name for the vault encryption key. Only used for AES256 vaults. |
| `--key-file` | `string` | File path for the vault encryption key. An absolute path is recommended. Only used for AES256 vaults. |
| `-o, --output` | `string` | Output format. One of: yaml, json, or tui. |
| `-p, --path` | `string` | Directory that the vault will use to store its data. If not set, the vault will be stored in the flow cache directory. |
| `--recipients` | `string` | Comma-separated list of recipient keys for the vault. Only used for Age vaults. |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi vault](mochi_vault.md) — Manage sensitive secret stores.
