cloudbase-serve

本地模拟云开发函数及静态托管命令行工具

Usage no npm install needed!

<script type="module">
  import cloudbaseServe from 'https://cdn.skypack.dev/cloudbase-serve';
</script>

README

tcb-serve

本地模拟云开发函数及静态托管命令行工具

安装

npm i -g cloudbase-serve

or

yarn global add cloudbase-serve

用法

在云开发项目目录运行命令或者指定函数、静态文件目录

tcb-serve run [<appRoot>] [<参数>]

appRoot: 云开发项目目录,包含 cloudbaserc.jsoncloudbaserc.js

参数

    --functionRoot  -f  函数根目录
    --staticRoot    -s  静态文件根目录
    --function          指定监听单个函数