# aspire secret path command

## Name

`aspire secret path` - Show the secrets file path.

## Synopsis

```bash title="Aspire CLI"
aspire secret path [options]
```

## Description

The `aspire secret path` command displays the full file path to the user secrets file for an Aspire AppHost. This is useful when you need to directly inspect or edit the secrets file, or when troubleshooting secrets resolution.

<Include relativePath="reference/cli/includes/project-search-logic-description.md" />

## Options

The following options are available:

- **`--apphost <apphost>`**

  The path to the Aspire AppHost project file.

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />

## Examples

- Show the secrets file path for the current AppHost:

  ```bash title="Aspire CLI"
  aspire secret path
  ```

- Show the secrets file path for a specific AppHost:

  ```bash title="Aspire CLI"
  aspire secret path --apphost ./src/MyApp.AppHost/MyApp.AppHost.csproj
  ```