YuanBot 安装引导工具 — 一行命令部署 YuanBot AI 虚拟伴侣
Project description
yuanbot-cli
YuanBot 安装引导工具 — 一行命令部署完整的 YuanBot AI 虚拟伴侣。
pip install yuanbot-cli
yuanbot install
这是什么
yuanbot-cli 是一个轻量级安装器,只有一个任务:帮你把完整的 YuanBot 部署到本地。
你只需要安装这一个 100KB 的小包,然后 yuanbot install 就会自动完成剩下的所有事情:
- ✅ 检查 Python 3.12+ 环境
- ✅ 从 GitHub 克隆最新代码
- ✅ 创建虚拟环境
- ✅ 安装 YuanBot 及其依赖
- ✅ 生成初始配置
- ✅ 交互式配置 AI 提供商和 API Key
- ✅ 运行系统诊断验证
- ✅ 打印下一步指引
快速开始
# 1. 安装
pip install yuanbot-cli
# 2. 全自动安装 YuanBot
yuanbot install
# 3. 根据提示选择 AI 提供商并输入 API Key
# 4. 安装完成后
cd YuanBot
source .venv/bin/activate
yuanbot start
非交互式安装
适合 Docker 和自动化脚本:
pip install yuanbot-cli
yuanbot install \
--provider deepseek \
--api-key "sk-..." \
--non-interactive
指定安装目录
yuanbot install --dir /opt/yuanbot
工作原理
yuanbot install
│
├── git clone https://github.com/Grabrun/YuanBot.git
├── python -m venv .venv
├── pip install -e .[dev] ← 这里安装完整的 yuanbot 包
├── yuanbot config init
├── 配置 AI 提供商 + API Key
└── yuanbot doctor ← 验证安装
安装完成后,完整的 yuanbot 命令(包含 start/tui/webui/doctor 等所有功能)会在虚拟环境中可用。
与完整 yuanbot 包的关系
| yuanbot-cli | yuanbot (完整版) | |
|---|---|---|
| 大小 | ~100KB | ~10MB (含依赖) |
| 安装方式 | pip install yuanbot-cli |
由 yuanbot install 自动安装 |
| 命令 | install, version |
start, tui, doctor, config, provider, persona, ... |
| 用途 | 安装引导 | 日常使用 |
发布到 PyPI
pip install build twine
cd yuanbot-cli
python -m build
twine upload dist/*
License
MIT
Project details
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
yuanbot_cli-1.0.8.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yuanbot_cli-1.0.8.tar.gz.
File metadata
- Download URL: yuanbot_cli-1.0.8.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd47337ccdbd8faac213df894a41a7e193a9cfc516b417790aa725483b91b10a
|
|
| MD5 |
dd3f2d585b6bc1f0df822cb09f76c154
|
|
| BLAKE2b-256 |
9e8cdc41059a8e24b885a2ef105a6e4ae89701eeb6be4cfc52f695569038e41b
|
File details
Details for the file yuanbot_cli-1.0.8-py3-none-any.whl.
File metadata
- Download URL: yuanbot_cli-1.0.8-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c98c5129b6c93a1cdb99de2c01fbcfcc0f4ee50b242a5e659a58210ff0ff69c2
|
|
| MD5 |
d8c2b1dc49f39c6a9df31db456f32c99
|
|
| BLAKE2b-256 |
fc63fbfaa487021e8a09fa7c6fbbf3096dbe4d8a7a483189fba6243d168ffb89
|