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

# nsc vault add

Add a secret to the vault.

`vault add` creates a new secret in your workspace's [vault](/docs/workspaces/security).

## Usage

```bash theme={null}
nsc vault add [--from_file <path>]
```

### Example

```bash theme={null}
nsc vault add --description "Database password" --label env=production
```

```text nocopy Output theme={null}
Enter secret value: ****

Object ID:    sec_8fumgjd5jk
Description:  Database password
Version:      secv_hk6jk1j6d0
```

## Options

<h3 id="--description--d-text">
  \--description, -d \<text>
</h3>

Description of the secret.

<h3 id="--revealable">
  \--revealable
</h3>

If set, the secret value can be retrieved in future calls.

<h3 id="--label-keyvalue">
  \--label \<key=value>
</h3>

Key-value labels to attach to the secret.

<h3 id="--from_file-path">
  \--from\_file \<path>
</h3>

Load the file contents as the secret value.

<h3 id="--output--o-format">
  \--output, -o \<format>
</h3>

Output format. One of `table` or `json`. Default is `table`.
