- 安装Github CLI: https://cli.github.com/manual/installation
- 安装Github CLI Serverless-Devs扩展:
gh extension install Serverless-Devs/gh-s
- 查看帮助:
g s --help
gh s create -p xxx
- 基于repository template创建一个项目
- 设置Serverless-Devs相关的secrets
- 执行git clone到本地进行开发
执行 gh s deploy
相当于调用 gh workflow run Serverless-Devs
- GitHub CLI: https://docs.github.com/en/github-cli
- gh actions: https://cli.github.com/manual/gh_actions
- Creating GitHub CLI extensions: https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions