> Markdown version of https://tuna.am/en/docs/cli/secrets/setup/. 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 setup

Bind a directory to a secrets project and config.

The binding is looked up from `--scope` up to the git repository root: the secrets section of .tuna.yml is shared with everyone who clones the repository, a personal binding in the CLI config overrides it on this machine.

Usage

```bash
tuna secrets setup [flags]

```

Examples

```bash
tuna secrets setup
tuna secrets setup --local -p backend -c dev
tuna secrets setup -p backend -c dev_ivan
tuna secrets setup --unset

```

| Flag                   | Description                                                                  |
| ---------------------- | ---------------------------------------------------------------------------- |
| `-c, --config string`  | Configuration name.                                                          |
| `--local`              | Save the binding to the secrets section of .tuna.yml in the scope directory. |
| `--no-interactive`     | Fail instead of prompting when project or config is not specified.           |
| `-p, --project string` | Project name.                                                                |
| `--scope string`       | Directory to scope configuration. Default: `.`.                              |
| `--unset`              | Remove the personal binding of the scope directory.                          |

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.43.0 | Added the `--local` and `--unset` flags. |
| 0.35.0 | Added the `--no-interactive` flag.       |
| 0.24.0 | Command added.                           |
