kldxbuild|飞书低代码平台

kldxbuild|飞书低代码平台

飞书低代码平台手册精选NaN-NaN-NaN
产品功能
概述
用于管理飞书低代码平台线上构建任务的一系列指令。Kunlun 低代码开发过程中存在两种类型的构建场景:
  1. 使用 kldx dev 时,执行本地构建;
  1. 使用 kldx source push 时,执行云端构建。
执行 kldx source push 命令后,Kunlun 云端会自动调用打包工具将用户推送上来的代码构建为可供运行环境(浏览器、小程序)直接执行的产物形态。
开发者可通过 kldx build 命令管理这些云端构建任务。
kldx build list --tenant [tenantName] --limit [limitLength]
kldx build status [build_task_id] --tenant [tenantName]
kldx build cancel [build_task_id] --tenant [tenantName]
kldx build list
查询当前用户所有构建任务列表。
Usage: kldx build list [options]
query latest build tasks as list
Options:
--tenant <tenant> the target tenant name
--limit <limit> max list length, less than 50 (default: "20")
-h, --help display help for command
参数:
参数名
说明
--tenant
选项,用于指定目标租户名
kldx build list --tenant apaas-xxx
--limit
选项,用于指定展示最大条数,最多展示最近50条,默认为20条
kldx build list --limit 30
kldx build list
Build task list
┌───────────┬─────┬────────────────────────────────────────────────────┐
│ ID │ Status │ Message │
174519153729240310 │ package upload to tos success │
174466294251933290[DX_BS_41002]: invalid dx-sdk in package.json │
174463683171748050 │ success │
174463428130511750 │ success │
174463539464194750 │ success │
174463428130203950 │ success │
174463304389328450 │ success │
174463174302623250 │ success │
174462979483037650 │ success │
174456328627098350 │ success │
174456140472935850 │ success │
174456206954395550 │ success │
174456074880717950 │ success │
174456328544263190[DX_BS_41003]: ERROR in ../tmp/dx/1744563285442631
│ │ │ /4347920e-653f-4fc6-b73f-2e1dcb96b18b/source/compo │
│ │ │ nents/Parent1/index.tsx 1:0-29
│ │ │ Module not found: Error: Can't resolve 'antd' in ' │
│ │ │ /tmp/dx/1744563285442631/4347920e-653f-4fc6-b73f-2
│ │ │ e1dcb96b18b/source/components/Parent1' │
│ │ │ @ ../tmp/dx/1744563285442631/4347920e-653f-4fc6-b │
│ │ │ 73f-2e1dcb96b18b/source/components/__virtual/web-e │
│ │ │ ntry.ts 38:32-148 40:96-212
│ │ │ webpack compiled with 1 errors │
174454995849832350 │ success │
174454987205837250 │ success │
174454872316933150 │ success │
174448430382797650 │ success │
174448471939383850 │ success │
174447814446085950 │ success │
└───────────┴─────┴───────────────────────────────┘
命令结果包括:
  • ID:构建任务的唯一标识
  • Status:构建任务当前状态,枚举值:
  • 10:构建中
  • 50:构建成功
  • 90:构建失败
  • Message:构建结果描述,若构建出错,这里会包含详细的错误信息。
kldx build status
查询单个构建任务信息,其中 build_task_id 参数可通过上述 kldx build list 获取。
sage: kldx build status [options] [build_task_id]
query status of one build task
Arguments:
build_task_id build task id
Options:
--tenant <tenant> the target tenant name
-h, --help display help for command
参数:
参数名
说明
build_task_id
可选参数,用于指定构建任务 ID,默认值为最近一次构建任务 ID。
kldx build status 8777xxx
--tenant
选项,用于指定目标租户名
kldx build status --tenant apaas-xxx
示例:
kldx build status
Latest build status
┌───────────┬─────┬─────┐
│ ID │ Status │ Message │
174519220320360450 │ success │
└───────────┴─────┴─────┘
kldx build cancel
终止某条正在运行的构建任务。
🎉
若执行 kldx source push 后长时间未响应,有可能是因为线上已经有若干正在构建的任务阻塞了命令,可尝试使用 kldx build cancel 命令取消线上任务。
Usage: kldx build cancel [options] <build_task_id>
cancel one build task
Arguments:
build_task_id build task id
Options:
--tenant <tenant> the target tenant name
-h, --help display help for command
参数:
参数名
说明
build_task_id
必填参数,用于指定构建任务 ID
kldx build cancel 8777xxx
--tenant
选项,用于指定目标租户名
kldx build cancel --tenant apaas-xxx
示例:
kldx build status
[ kldx ] Cancel build task success
先进生产力和业务协同平台
联系我们立即试用

先进团队,先用飞书

欢迎联系我们,飞书效能顾问将为您提供全力支持
分享先进工作方式
输送行业最佳实践
全面协助组织提效
联系我们立即试用