> Markdown version of https://tuna.am/en/docs/cli/secrets/set/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna secrets set

Set the value of one or more secrets.

Value can be passed inline (`KEY=VALUE`), as a separate argument (KEY VALUE), piped via stdin (echo value | tuna secrets set KEY) or entered interactively.

Usage

```bash
tuna secrets set KEY=VALUE... [flags]

```

| Flag                   | Description                                                                                         |
| ---------------------- | --------------------------------------------------------------------------------------------------- |
| `-c, --config string`  | Configuration name (the CLI config file path is controlled by `TUNA_CONFIG`).                       |
| `--no-interactive`     | Do not allow entering the secret value interactively.                                               |
| `--note string`        | Note to set on the secrets.                                                                         |
| `-p, --project string` | Project name.                                                                                       |
| `--scope string`       | Directory to scope configuration. Default: `.`.                                                     |
| `--type string`        | Secret value type (string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime). |
| `--visibility string`  | Secret visibility (masked, unmasked or restricted).                                                 |

Also accepts the flags of [`tuna secrets`](https://tuna.am/en/docs/cli/secrets.md).

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.

## History

|        |                |
| ------ | -------------- |
| 0.35.0 | Command added. |
