# 机密
### `put`
创建或替换机密的交互式命令
~~~bash
wrangler secret put <name> --env ENVIRONMENT_NAME
Enter the secret text you'd like assigned to the variable name on the script named my-worker-ENVIRONMENT_NAME:
~~~
* `name`:脚本中可访问的变量名
* `--env`:(可选)将机密绑定到特定[环境](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/)的脚本[](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/)
### `delete`
交互式命令,用于从特定脚本中删除机密
~~~bash
wrangler secret delete <name> --env ENVIRONMENT_NAME
~~~
* `name`:脚本中可访问的变量名
* `--env`:(可选)将机密绑定到特定[环境](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/)的脚本[](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/)
### `list`
列出绑定到特定脚本的所有秘密名称
~~~bash
wrangler secret list --env ENVIRONMENT_NAME
~~~
* `--env`:(可选)将机密绑定到特定[环境](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/)的脚本
- 关于本翻译文档
- 快速开始
- 模版库
- 讲解
- Workers页面
- 从0开始
- 从已有页面开始
- 从已有Worder开始
- 工具
- Cli工具 wrangler
- 安装
- 指令
- 配置
- 环境
- Webpack
- 密钥
- KV
- 网站
- Playground
- ServerLess插件
- Terraform
- REST API
- Making Requests
- Scripts
- Bindings
- Routes
- Integrations
- 相关
- 工作原理
- 安全
- 使用缓存
- 价格
- Routes
- Limits
- 提示
- 调试技巧
- 调试header
- FetchEvent生命周期
- 请求上下文
- 请求sign
- 参考
- runtime API
- Web Standards
- fetch
- fetchEvent
- Response
- Request
- KV
- Environment Variables
- Streams
- Encoding
- Web Crypto
- Cache API
- HTMLRewriter
- Workers KV
- Use cases
- Namespaces