Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加 CLI 运营后台部署文档描述 #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions cloud-function/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,25 @@ $ mincloud pull <function_name> [cloud_function_root]
--------------------|-------|---------------|--------------------------------------------------------------------------
function_name | 是 | 无 | 云函数名
cloud_function_root | 否 | 当前目录 `./` | 用于存放云函数代码的本地目录


### 部署运营后台

> **danger**
> CLI 版本要求 >= 1.2.2

必须先登录,请参考 `mincloud login`。

该命令可将本地前端项目部署到运营后台。

```
$ mincloud dashboard-deploy <file_path>
```

参数 | 必填 | 默认值 | 说明
--------------------|-------|---------------|--------------------------------------------------------------------------
file_path | 是 | 无 | 文件路径,可以是一个目录,或者是一个 zip 文件。如果是 zip 文件,则注意压缩时需把项目根路径压缩,而不是把项目目录文件夹压缩。

flag | 说明
--------------|------------------------------------
-r, --refresh | 是否刷新管理后台部署地址,取值为:true or false。可为空,默认为 true。