Skip to main content

CLI for nonebot2

Project description

nb-cli

English | 中文

NoneBot2 的命令行工具

功能

  • 创建新的 Nonebot 项目
  • 启动 Nonebot
  • 部署 NoneBot 到 Docker
  • 管理插件
    • 创建新的插件
    • 搜索/安装/更新/卸载在官方商店上发布的插件
  • 管理适配器
    • 创建新的适配器
    • 搜索/安装/更新/卸载在官方商店上发布的适配器

使用

安装

pip install nb-cli

或者,带有可选的 deploy 依赖项

pip install nb-cli[deploy]

命令行使用

nb --help
  • nb init (create) 创建新的 Nonebot 项目
  • nb run 在当前目录启动 Nonebot
  • nb driver 管理驱动器
    • nb driver list 查看驱动器列表
    • nb driver search 搜索驱动器
    • nb driver install (add) 安装驱动器
  • nb plugin 管理插件
    • nb plugin new (create) 创建新的插件
    • nb plugin list 列出官方商店的所有插件
    • nb plugin search 在官方商店搜索插件
    • nb plugin install (add) 安装插件
    • nb plugin update 更新插件
    • nb plugin uninstall (remove) 卸载插件
  • nb adapter 管理适配器
    • nb adapter new (create) 创建新的适配器
    • nb adapter list 列出官方商店的所有适配器
    • nb adapter search 在官方商店搜索适配器
    • nb adapter install (add) 安装适配器
    • nb adapter update 更新适配器
    • nb adapter uninstall (remove) 卸载适配器

以下功能需要 [deploy] 依赖

  • nb build 在当前目录构建 Docker 镜像
  • nb deploy (up) 在当前目录构建、创建并运行 Docker 容器
  • nb exit (down) 在当前目录停止并删除 Docker 容器

交互式使用

nb

CookieCutter 使用

安装 cookiecutter

pip install cookiecutter

创建项目

cookiecutter https://github.com/nonebot/nb-cli.git --directory="nb_cli/project"

创建插件

cookiecutter https://github.com/nonebot/nb-cli.git --directory="nb_cli/plugin"

创建适配器

cookiecutter https://github.com/nonebot/nb-cli.git --directory="nb_cli/adapter"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nb-cli-0.6.7.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nb_cli-0.6.7-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file nb-cli-0.6.7.tar.gz.

File metadata

  • Download URL: nb-cli-0.6.7.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.17.9-arch1-1

File hashes

Hashes for nb-cli-0.6.7.tar.gz
Algorithm Hash digest
SHA256 394bf65eabbda6aa7c410961b901e9f7320fae12143818b1c078fc43f060fa0e
MD5 46b4458b95101c1958887b74baf8775a
BLAKE2b-256 36779aee4eb48b079637a5e8dd3e55459947c0e947a6aa8aa300f6c31cf90b6d

See more details on using hashes here.

File details

Details for the file nb_cli-0.6.7-py3-none-any.whl.

File metadata

  • Download URL: nb_cli-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.17.9-arch1-1

File hashes

Hashes for nb_cli-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 693342ebcf4dce14fd7be4555c65e5da41707a67e5de73d7d7fe67a716a1cad9
MD5 c6b5e0084b55666a0645314f0b686c48
BLAKE2b-256 5f6b85401df5fa698672d94533cdd6750aa9abbde3b549327150ae517ef0ae77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page