nb-cli 1.4.2
pip install nb-cli
Latest version
Released:
CLI for nonebot2
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: yanyongyu
- Tags bot, qq, nonebot, bot, qq, nonebot
- Requires: Python <4.0, >=3.9
Classifiers
- Development Status
- Framework
- License
- Operating System
- Programming Language
Project description
NB CLI
✨ NoneBot2 命令行工具 ✨
文档 · 安装 · NoneBot 文档
功能
- 创建新的 Nonebot 项目
- 启动 Nonebot
- 管理插件
- 创建新的插件
- 搜索/安装/更新/卸载在官方商店上发布的插件
- 管理适配器
- 创建新的适配器
- 搜索/安装/更新/卸载在官方商店上发布的适配器
- 管理驱动器
- 搜索/安装/更新/卸载在官方商店上发布的驱动器
- 支持 CLI 插件和运行脚本
使用
完整使用文档请参考 文档。
安装
使用 pipx 安装
pipx install nb-cli
使用 Docker 运行
docker pull nonebot/nb-cli:latest
Docker 镜像可以选择以下版本:
latest
,latest-slim
:最新的稳定版本latest-${python版本}
,latest-${python版本}-slim
:指定 Python 版本的最新稳定版本${cli版本}
,${cli版本}-slim
:指定 CLI 版本的最新稳定版本${cli版本}-${python版本}
,${cli版本}-${python版本}-slim
:指定 CLI 和 Python 版本的最新稳定版本
命令行使用
nb --help
Warning
如果找不到
nb
命令,请尝试pipx ensurepath
来添加路径到环境变量
nb create (init)
创建新的 NoneBot 项目nb run
在当前目录启动 NoneBotnb generate
在当前目录生成启动脚本nb driver
管理驱动器nb plugin
管理插件nb adapter
管理适配器nb self
管理 CLI 内部环境nb <script>
运行脚本
Docker 镜像使用
docker run --rm -it -v ./:/workspaces nonebot/nb-cli:latest --help
挂载当前目录到容器的 /workspaces
目录,然后在容器中运行 nb
命令。
交互式使用
nb
Docker 镜像使用
docker run --rm -it -v ./:/workspaces nonebot/nb-cli:latest
开发
翻译
生成模板
pdm run extract
初始化语言翻译文件或者更新现有语言翻译文件
pdm run init en_US
更新语言翻译文件
pdm run update
编译语言翻译文件
pdm run compile
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: yanyongyu
- Tags bot, qq, nonebot, bot, qq, nonebot
- Requires: Python <4.0, >=3.9
Classifiers
- Development Status
- Framework
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nb_cli-1.4.2.tar.gz
.
File metadata
- Download URL: nb_cli-1.4.2.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d97b2d51569c7f7c7371744b9ed4b73361bc1853111bde2ddf1e990a1e19fef |
|
MD5 | 4cf6e911123df34b498c23fd9e09cfd2 |
|
BLAKE2b-256 | 221f0d349ab864d32770c860eb0d63c8fdea071a4d5d5869703c60aee12112fd |
File details
Details for the file nb_cli-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: nb_cli-1.4.2-py3-none-any.whl
- Upload date:
- Size: 64.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8348480a988fb8632130e14925977ad117d4a0c76c971f91ad813f91a7592263 |
|
MD5 | d51add9c8c412a8bc3e1b099fe3ce793 |
|
BLAKE2b-256 | 85c827f183a08c4bfc1b0665cae47715e1ba7066d05c8a12fd3d1d425bf5a252 |