<a id="hook-command-secret-info-get"></a>

# `secret-info-get`

## Summary

Gets a secret’s metadata info.

## Usage

```text
secret-info-get [options] <ID>
```

### Options

| Flag             | Default   | Usage                                          |
|------------------|-----------|------------------------------------------------|
| `--format`       | yaml      | Specify output format (json|yaml)              |
| `--label`        |           | Specifies a label used to identify the secret. |
| `-o`, `--output` |           | Specify an output file                         |

## Examples

```none
secret-info-get secret:9m4e2mr0ui3e8a215n4g
secret-info-get --label db-password
```

## Details

Get the metadata of a secret with a given secret ID.
Either the ID or label can be used to identify the secret.
