[i=s] 本帖最后由 WildboarG 于 2025-2-24 08:53 编辑 [/i]
WB2-CLI


一个快速生成Ai-Thinker-WB2工程的cli工具
依赖
需要安装WB2的SDK到本机
安装
-
手动构建
git clone https://github.com/WildboarG/WB2-CLI.git
cd WB2-CLI
go build .
-
或安装发行版
wget -O wb2-cli https://github.com/WildboarG/wb2-cli/releases/download/v0.0.1/wb2-cli-linux-amd64
chmod +x wb2-cli
sudo mv wb2-cli /usr/bin/.
使用
wb2-cli -h
NAME:
wb2-cli - wb2-cli [commands]
USAGE:
wb2-cli [global options] command [command options]
VERSION:
v0.0.1
COMMANDS:
init Initialize a WB2 SDK PATH
create Create a new project
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
- 初始化:
- 根据提示输入安装sdk的路径
- 建议将路径保存在系统环境变量下(2,3,4),这样就不用每次创建工程再次初始化
wb2-cli init
wb2-cli create