Skip to main content

secret create

Create a secret

Usage

coder secret create [flags] <name>

Description

Provide the secret value with --value or non-interactive stdin (pipe or redirect).

Options

--value

Typestring

Set the secret value. For security reasons, prefer non-interactive stdin (pipe or redirect).

--description

Typestring

Set the secret description.

--env

Typestring

Name of the workspace environment variable that this secret will set.

--file

Typestring

Workspace file path where this secret will be written. Must start with ~/ or /.

--enabled

Typebool
Defaulttrue

Whether the secret is injected into workspaces. An enabled secret must set --env or --file; pass --enabled=false to store a secret without injecting it.