Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>laf assistantNew to Visual Studio Code? Get it now.

laf assistant

NightWhite

|
49 installs
| (1) | Free
laf assistant
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

laf-assistant README

node version >= 16

1.在你的项目中创建文件夹名为 laf-functions

cd YourProjectFolder
mkdir laf-functions

2.登录Cli和初始化环境

在laf-functions文件夹上右键,先登录,后初始化,一般只需要操作一次,如果提示需要配置apiurl等,请完成3后再登录和初始化

3.修改配置文件

修改 .vscode/settings.json 中的apiurl、pat和appid

apiurl: 一般为 https://api. 开头,如:https://api.laf.dev

pat: laf后台点击头像,用户设置,访问凭证,添加Token

appid:填你的应用appid

4.同步线上依赖

登录并初始化后,可以将线上安装的依赖同步到本地,仅为方便开发时查看代码提示,可不同步,不参与编译或代码运行。如果线上增加了新的依赖,可再执行一次。

5.发布/下载全部云函数

登录并初始化后,在laf-functions文件夹上右键,发布/下载全部云函数

6.操作单个云函数

下载全部云函数后,打开laf-functions/functions,任意打开一个云函数,在编辑框右键即可 发布/下载/运行 本云函数

7.其他功能

其他cli功能暂未添加,可在终端输入 laf -h 查看

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft