init
1. 接口描述
接口功能:初始化云托管代码项目
接口声明:init(params: { serverName: string; template?: string; targetPath?: string }): Promise<{ projectDir: string }>
2. 输入参数
| 字段 | 必填 | 类型 | 说明 |
|---|
| serverName | 是 | String | 服务名称,将作为项目目录名 |
| template | 否 | String | 模板标识符,默认为'helloworld' |
| targetPath | 否 | String | 目标路径,默认为当前目录 |
3. 返回结果