Skip to main content

项目管理

注意

请在运行命令前,确保已经在项目目录下。如果使用了虚拟环境,确保已经激活。

插件管理

运行以下命令打开插件管理选单

nb plugin
$ nb plugin --help
Usage: nb plugin [OPTIONS] COMMAND [ARGS]...

管理 bot 插件.

Options:
-h, --help Show this message and exit.

Commands:
store 打开 NoneBot 插件商店.
list 列出 NoneBot 官网上发布的插件.
search 搜索 NoneBot 官网上发布的插件.
install (add) 安装插件到当前项目.
update 更新插件.
uninstall (remove) 移除当前项目中的插件.
create (new) 创建一个新的插件.

驱动器管理

运行以下命令打开驱动器管理选单

nb driver
$ nb driver --help
Usage: nb driver [OPTIONS] COMMAND [ARGS]...

管理 bot 驱动器.

Options:
-h, --help Show this message and exit.

Commands:
store 打开 NoneBot 驱动器商店.
list 列出 NoneBot 官网上发布的驱动器.
search 搜索 NoneBot 官网上发布的驱动器.
install (add) 安装驱动器到当前项目.
update 更新驱动器.
uninstall (remove) 移除当前项目中的驱动器.

适配器管理

运行以下命令打开适配器管理选单

nb adapter
$ nb adapter --help
Usage: nb adapter [OPTIONS] COMMAND [ARGS]...

管理 bot 适配器.

Options:
-h, --help Show this message and exit.

Commands:
store 打开 NoneBot 适配器商店.
list 列出 NoneBot 官网上发布的适配器.
search 搜索 NoneBot 官网上发布的适配器.
install (add) 安装适配器到当前项目.
update 更新适配器.
uninstall (remove) 移除当前项目中的适配器.
create (new) 新建适配器