Skip to main content

coder secret create

On this page

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

PropertyValue
Typestring

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

--description

PropertyValue
Typestring

Set the secret description.

--env

PropertyValue
Typestring

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

--file

PropertyValue
Typestring

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

--enabled

PropertyValue
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.