> For the complete documentation index, see [llms.txt](https://docs.duplicati.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplicati.com/duplicati-programs/command-line-interface-cli-1/secrettool.md).

# SecretTool

This page describes the Duplicati SecretTool

The SecretTool is a small utility tool that can be used to test the [secret provider](/security-and-secrets/using-the-secret-provider.md) configuration.

The SecretTool is called `Duplicati.CommandLine.SecretTool.exe` on Windows and `duplicati-secret-tool` on Linux and MacOS.

To use the tool, invoke it with a configuration and some secrets to locate:

```
duplicati-secret-tool test <provider url> <secret>
```

Multiple secrets can be provided and the tool will attempt to resolve each of them. See the [secret provider section](/security-and-secrets/using-the-secret-provider.md) for details on how to use and configure the secret providers. Commandline help is also available with:

```
duplicati-secret-tool info <provider url>
```

Note that to protect the secrets, the tool will not report the actual values, but just report if it was able to obtain a value from the secret provider.

For providers that support storing secrets, the tool can also write a secret:

```
duplicati-secret-tool set <provider url> <key> [value]
```

If the value is left out, the tool asks for it twice on the console, so it does not end up in the shell history. Add `--overwrite` to replace a secret that already exists. After storing the value, the tool reads it back to check that it was stored correctly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.duplicati.com/duplicati-programs/command-line-interface-cli-1/secrettool.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
