> ## 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 create

> Store a new secret

```text
Store a new secret (POST /v1/vault/secrets).

The value is read from --value-file, or from stdin when that is not a terminal.
It is never taken from a flag: a flag value is in your shell history and in the
process table, where any other user of the machine can read it with ps.

A single trailing newline is stripped, so a value written with a text editor or
printed by another command does not carry one into the Authorization header.

--host is required and repeatable. An entry is an exact name (api.github.com), a
subdomain wildcard (*.github.com, which does not cover the apex), or * on its own
for any host, which has to be chosen deliberately.

A name that already exists is a 409: use "vault rotate" to add a version.
```

## Usage

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

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for create |
| `--host` | stringArray | a host this secret may be sent to (repeatable; required) |
| `--value-file` | string | file holding the 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.