Skip to content

Contributed by WildboarG, organized by Ai-Thinker

A Small Tool for Quickly Generating Ai-WB2 Projects

WB2-CLI


A cli tool for quickly generating Ai-Thinker-WB2 projects

Dependencies


需要安装WB2的SDK到本机

Installation


  1. Manual build

    • Download
Click to expand full code
html
git clone [https://github.com/WildboarG/WB2-CLI.git](https://github.com/WildboarG/WB2-CLI.git)
 cd WB2-CLI
  • Compile
Click to expand full code
html
go build .
  1. Or install a release

    • Download (Linux as an example)
Click to expand full code
html
wget -O wb2-cli [https://github.com/WildboarG/wb2-cli/releases/download/v0.0.1/wb2-cli-linux-amd64](https://github.com/WildboarG/wb2-cli/releases/download/v0.0.1/wb2-cli-linux-amd64)
  • Grant execute permission
Click to expand full code
html
chmod +x wb2-cli
  • Move to a system directory
Click to expand full code
html
sudo mv wb2-cli /usr/bin/.

Usage

  • View help:
Click to expand full code
html
wb2-cli  -h
Click to expand full code
html
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
  • Initialize:
  • Enter the SDK installation path as prompted
  • It is recommended to save the path in a system environment variable (options 2, 3, 4), so you don't have to re-initialize every time you create a project
Click to expand full code
html
wb2-cli init
  • Create a new project:
    • Just enter the project name as prompted
Click to expand full code
html
wb2-cli create

Released under the MIT License. Build Time 2026-09-11 14:52:23