---
title: thv secret get
hide_title: true
description: Reference for ToolHive CLI command `thv secret get`
last_update:
  author: autogenerated
slug: thv_secret_get
mdx:
  format: md
---

## thv secret get

Get a secret

### Synopsis

Retrieve and display the value of a secret by name.

This command fetches the specified secret from your configured secrets provider
and displays its value. The secret value prints to stdout, making it
suitable for use in scripts or command substitution.

The secret must exist in your configured secrets provider, otherwise the command returns an error.

```
thv secret get <name> [flags]
```

### Options

```
  -h, --help   help for get
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv secret](thv_secret.md)	 - Manage secrets

