coder secret create
Create a secret.
On this page
Create a secret
Usage
Usagecoder secret create [flags] <name>Description
DescriptionProvide the secret value with --value or non-interactive stdin (pipe or redirect).Options
Options--value
--value| Property | Value |
|---|---|
| Type | string |
Set the secret value. For security reasons, prefer non-interactive stdin (pipe or redirect).
--description
--description| Property | Value |
|---|---|
| Type | string |
Set the secret description.
--env
--env| Property | Value |
|---|---|
| Type | string |
Name of the workspace environment variable that this secret will set.
--file
--file| Property | Value |
|---|---|
| Type | string |
Workspace file path where this secret will be written. Must start with ~/ or /.
--enabled
--enabled| Property | Value |
|---|---|
| Type | bool |
| Default | true |
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.