mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-04 00:46:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			724 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			724 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
sidebar_position: 2
 | 
						|
description: 通过脚手架或 pip 安装适配器
 | 
						|
---
 | 
						|
 | 
						|
import Asciinema from "@site/src/components/Asciinema";
 | 
						|
 | 
						|
# 安装协议适配器
 | 
						|
 | 
						|
## 查看
 | 
						|
 | 
						|
前往[商店](/store)即可查看所有协议适配器。
 | 
						|
 | 
						|
或者使用 nb-cli 命令行查看:
 | 
						|
 | 
						|
```bash
 | 
						|
nb adapter list
 | 
						|
```
 | 
						|
 | 
						|
## 安装
 | 
						|
 | 
						|
前往[商店](/store)点击复制 nb-cli 安装命令至命令行执行即可安装。
 | 
						|
 | 
						|
或者自行输入命令安装:
 | 
						|
 | 
						|
```bash
 | 
						|
nb adapter install <adapter-name>
 | 
						|
```
 | 
						|
 | 
						|
或者使用交互模式安装:
 | 
						|
 | 
						|
```bash
 | 
						|
nb adapter install
 | 
						|
```
 | 
						|
 | 
						|
也可以使用 pip 安装
 | 
						|
 | 
						|
```bash
 | 
						|
pip install <adapter-name>
 | 
						|
```
 | 
						|
 | 
						|
<Asciinema
 | 
						|
  url="https://asciinema.org/a/464727.cast"
 | 
						|
  options={{ theme: "monokai", poster: "npt:2.0" }}
 | 
						|
/>
 |