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