Files
coder/docs/reference/cli/secret_import.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
818 B
Markdown
Raw Normal View History

---
# Code generated by make gen. DO NOT EDIT.
title: secret import
description: Import secrets from a file
---
<!-- DO NOT EDIT | GENERATED CONTENT -->
Import secrets from a file
## Usage
```console
coder secret import [flags] <file>
```
## 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
### --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.