Linux command
doppler-secrets 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all secrets
doppler secrets
Get specific secret
doppler secrets get [SECRET_NAME]
Set a secret
doppler secrets set [KEY]=[value]
Delete a secret
doppler secrets delete [SECRET_NAME]
Download secrets
doppler secrets download --no-file --format env
Download as JSON
doppler secrets download --no-file --format json
说明
doppler secrets manages secrets stored in Doppler. It provides read, write, and export capabilities for secrets within a project and configuration. The download command exports secrets in various formats for integration with tools that expect .env files or other formats. The no-file flag outputs to stdout for piping. Secret values are encrypted in transit and at rest. Access is logged for audit purposes.
参数
- get _NAME_
- Retrieve specific secret value.
- set _KEY=VALUE_
- Set secret value.
- delete _NAME_
- Remove secret.
- download
- Export secrets.
- --format _FORMAT_
- Output format: env, json, yaml.
- --no-file
- Output to stdout instead of file.
- --config _NAME_
- Config environment.
- --help
- Display help information.
FAQ
What is the doppler-secrets command used for?
doppler secrets manages secrets stored in Doppler. It provides read, write, and export capabilities for secrets within a project and configuration. The download command exports secrets in various formats for integration with tools that expect .env files or other formats. The no-file flag outputs to stdout for piping. Secret values are encrypted in transit and at rest. Access is logged for audit purposes.
How do I run a basic doppler-secrets example?
Run `doppler secrets` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does get _NAME_ do in doppler-secrets?
Retrieve specific secret value.