You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

通过Denojs的deployctl部署项目时如何添加--unstable参数?

解决deployctl部署时需配置--unstable参数的问题

有两种常见方式可以配置--unstable参数:

1. 直接在部署命令中添加参数

直接在deployctl deploy命令末尾追加--unstable即可,示例命令:

deployctl deploy --unstable your_entry_file.ts

如果需要指定项目名或token,把参数放在对应位置就行,比如:

deployctl deploy --token YOUR_DEPLOY_TOKEN --project your-project --unstable src/main.ts

2. 通过配置文件指定

如果习惯用配置文件管理部署参数,可以在项目的deno.json(或deno.jsonc)中添加deploy字段,开启unstable模式:

{
  "deploy": {
    "project": "your-project-id",
    "entrypoint": "src/main.ts",
    "unstable": true
  }
}

之后执行deployctl deploy时,工具会自动读取配置里的unstable设置,无需再在命令行手动加参数。

如果是用CI/CD流程(比如GitHub Actions)部署,同样在deployctl命令中加入--unstable参数即可,示例步骤:

- name: Deploy to Deno Deploy
  run: deployctl deploy --token ${{ secrets.DENO_DEPLOY_TOKEN }} --unstable src/main.ts

内容的提问来源于stack exchange,提问作者thrnrhhl

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.26 08:45:39