mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
Adds `coder secret import <file>` to bulk-import dotenv, JSON, or YAML secrets through the existing batch API. The command infers the format from the extension or accepts `--input-format`, supports non-interactive stdin, validates files locally before upload, and warns when imported keys cannot be injected as environment variables. Reviewed and updated by Coder Agents on behalf of @dylanhuff-at-coder.
20 lines
617 B
Plaintext
20 lines
617 B
Plaintext
coder v0.0.0-devel
|
|
|
|
USAGE:
|
|
coder secret import [flags] <file>
|
|
|
|
Import secrets from a file
|
|
|
|
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 env|json|yaml
|
|
Format of the secrets file. Inferred from the file extension when
|
|
unset, and required when reading from stdin.
|
|
|
|
———
|
|
Run `coder --help` for a list of global options.
|