# coder secret import

Import secrets from a file

## Usage [#usage]

```console
coder secret import [flags] <file>
```

## Description [#description]

```console
Every key in the file becomes a secret. Keys allowed as environment variable names are injected into workspaces under the same name. The import is all or nothing, and existing secrets are never overwritten. Pass - to read the file from non-interactive stdin (pipe or redirect).
```

## Options [#options]

### --input-format [#--input-format]

|      |                              |
| ---- | ---------------------------- |
| Type | <code>env\|json\|yaml</code> |

Format of the secrets file. Inferred from the file extension when unset, and required when reading from stdin.
