> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# anona-compute vault rotate

> Store a new version of a secret and make it current

```text
Store a new version of a secret and make it current
(POST /v1/vault/secrets/{name}/versions).

Existing bindings keep working and start resolving to the new value; nothing has
to be recreated. Without --host the recorded allowed-hosts list is kept. The
output shows the allowed hosts and bindings the secret has after the rotation.

The value is read from --value-file or stdin, as with "vault create".
```

## Usage

```text
anona-compute vault rotate <name> [flags]
```

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for rotate |
| `--host` | stringArray | replace the allowed hosts as well (repeatable) |
| `--value-file` | string | file holding the new value ("-" or omitted reads stdin) |

Global flags (`--api-key`, `--api-url`, `--json`, `--output`, `--profile`, `--request-timeout`, `--verbose`) work on every command; see [anona-compute](/docs/cli/reference/anona-compute.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.