### 添加 VLESS-REALITY 配置命令 Source: https://github.com/233boy/sing-box/wiki/sing-box搭建详细图文教程 用于添加 VLESS-REALITY 配置。可自定义端口和 SNI,例如端口 443,SNI 为 dl.google.com。 ```bash sb add reality ``` ```bash sb add reality 443 auto dl.google.com ``` -------------------------------- ### 添加 SS 配置命令 Source: https://github.com/233boy/sing-box/wiki/sing-box搭建详细图文教程 用于添加一个 SS 配置,常用于测试 sing-box 是否正常运行。若 VLESS-REALITY 无法使用,可尝试此命令。 ```bash sb add ss auto auto aes-256-gcm ``` -------------------------------- ### 查看帮助 (sb help) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 查看其他参数的用法帮助。 ```bash sb help ``` -------------------------------- ### sb add VMess (WS/TCP/HTTP/QUIC) 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 VMess 配置,支持 WS、TCP、HTTP、QUIC 传输。可选参数:端口、UUID、伪装类型。用法:`sb add [ws | tcp | http | quic] [port] [uuid]`。 ```bash sb add ws ``` ```bash sb add tcp ``` ```bash sb add http ``` ```bash sb add quic ``` ```bash sb add tcp 233 auto ``` -------------------------------- ### 关闭防火墙命令 Source: https://github.com/233boy/sing-box/wiki/sing-box搭建详细图文教程 用于关闭系统防火墙(firewalld 和 ufw),以便测试端口连通性。执行后需再次测试端口是否可连接。 ```bash systemctl stop firewalld; systemctl disable firewalld; ufw disable ``` -------------------------------- ### 添加 Hysteria2 配置命令 Source: https://github.com/233boy/sing-box/wiki/sing-box搭建详细图文教程 用于添加一个 Hysteria2 配置。 ```bash sb add hy ``` -------------------------------- ### 添加 AnyTLS 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 AnyTLS 配置,可选参数:端口,密码,域名。 ```bash sb add anytls [port] [password] [domain] ``` ```bash sb add anytls ``` ```bash sb add anytls 443 ``` ```bash sb add anytls 443 auto 233boy.com ``` -------------------------------- ### 添加 Shadowsocks 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 Shadowsocks 配置,可选参数:端口,密码,加密方式。 ```bash sb add ss [port] [password] [method] ``` ```bash sb add ss ``` ```bash sb add ss auto auto 2022-blake3-aes-128-gcm ``` ```bash sb add ss 233 233boy aes-128-gcm ``` -------------------------------- ### 安装 sing-box 脚本 Source: https://github.com/233boy/sing-box/wiki/sing-box搭建详细图文教程 在 Xshell 中执行此命令以安装 sing-box。粘贴时使用 Shift + Insert,而非 Ctrl + V。安装完成后会自动创建 VLESS-REALITY 配置。 ```bash bash <(wget -qO- -o- https://github.com/233boy/sing-box/raw/main/install.sh) ``` -------------------------------- ### sb import 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 导入 xray/v2ray 脚本配置,仅限本人脚本创建的配置可自动导入。 ```bash sb import ``` -------------------------------- ### sb [option] 直接使用选项名 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 直接使用选项名更改配置,如 id、port、host、web、sni 等。 ```bash sb id ``` ```bash sb port ``` ```bash sb port tcp 233 ``` ```bash sb id tcp ``` ```bash sb id tcp auto ``` ```bash sb host tls 233boy.com ``` ```bash sb web tls example.com ``` ```bash sb sni reality 1.1.1.1 ``` -------------------------------- ### sb fix-config.json 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 修复 config.json 文件。 ```bash sb fix-config.json ``` -------------------------------- ### sb add VMess (WS/H2/HTTPUpgrade)-TLS 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 VMess 带 TLS 的配置,支持 WS、H2、HTTPUpgrade 传输。可选参数:域名、UUID、路径。用法:`sb add [ws | h2 | hu] [host] [uuid] [/path]`。 ```bash sb add wss ``` ```bash sb add h2 ``` ```bash sb add hu ``` ```bash sb add wss 233boy.com ``` ```bash sb add h2 233boy.com auto /h2 ``` ```bash sb add hu 233boy.com auto /mypath ``` -------------------------------- ### sb change 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 change 用于更改配置。用法:`sb change [name] [option] [args... | auto]`。不同配置可更改的选项不同,选项包括 full、id、host、port、path、passwd、key、method、sni、new。 ```bash sb change [name] [option] [args... | auto] ``` -------------------------------- ### 启动、停止或重启 sing-box/Caddy (sb start/stop/restart) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 管理 sing-box 或 Caddy 的启动、停止和重启。可指定 caddy 参数来操作 Caddy。 ```bash sb [start | stop | restart] [caddy] ``` ```bash sb restart ``` ```bash sb restart caddy ``` -------------------------------- ### 重装脚本 (sb reinstall) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 重装 sing-box 脚本。 ```bash sb reinstall ``` -------------------------------- ### add 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 add 命令用于添加配置,用法为 sb add [protocol] [args... | auto]。可选参数不存在时默认为 auto。 ```bash sb add [protocol] [args... | auto] ``` ```bash sb add ``` ```bash sb add h2 ``` ```bash sb add ws ``` ```bash sb add ss ``` ```bash sb add hy ``` ```bash sb add tcp ``` ```bash sb add tuic ``` ```bash sb add reality ``` -------------------------------- ### sb import Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 导入 xray/v2ray 脚本配置,方便统一管理。 ```APIDOC ## [CLI] sb import ### Description 导入 xray/v2ray 脚本配置,方便统一管理。 ### Usage `sb import` ### Notes - 仅限使用本人(233boy)的 xray/v2ray脚本创建的配置可自动导入。 - 仅部分配置可实现自动导入,并且已导入的配置,将在原脚本上无法查看或管理。 ``` -------------------------------- ### 添加 VLESS-REALITY 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 VLESS-REALITY 配置,可选参数:端口,UUID,SNI。reality 可简写为 r。 ```bash sb add reality [port] [uuid] [sni] ``` ```bash sb add reality ``` ```bash sb add reality 443 auto dl.google.com ``` -------------------------------- ### sb update 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 更新脚本或核心,可指定 core、sh、caddy 及版本。 ```bash sb update [core | sh | caddy] [ver] ``` -------------------------------- ### sb add 简化用法示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 当可选参数不存在时默认自动处理(除了 *TLS 配置必须提供域名)。绝大多数情况下只需提供协议即可。 ```bash sb add tcp ``` ```bash sb add hy ``` ```bash sb add tuic ``` -------------------------------- ### sb add VLESS (WS/H2/HTTPUpgrade)-TLS 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 VLESS 带 TLS 的配置,支持 WS、H2、HTTPUpgrade 传输。可选参数:域名、UUID、路径。用法:`sb add [vws | vh2 | vhu] [host] [uuid] [/path]`。 ```bash sb add vws ``` ```bash sb add vh2 ``` ```bash sb add vhu ``` ```bash sb add vws 233boy.com ``` ```bash sb add vh2 233boy.com auto /h2 ``` ```bash sb add vhu 233boy.com auto /HTTPUpgrade ``` -------------------------------- ### 添加 Socks 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 Socks 配置,可选参数:端口,用户名,密码。 ```bash sb add socks [port] [username] [password] ``` ```bash sb add socks ``` -------------------------------- ### sb add socks 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加一个 SOCKS 配置,端口、用户名、密码作为可选参数。示例:`sb add socks 233 233boy 233boy.com` 设置端口为 233,用户名为 233boy,密码为 233boy.com。 ```bash sb add socks 233 233boy 233boy.com ``` -------------------------------- ### 添加 VLESS-HTTP2-REALITY 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 VLESS-HTTP2-REALITY 配置,可选参数:端口,UUID,SNI。 ```bash sb add rh2 [port] [uuid] [sni] ``` ```bash sb add rh2 ``` ```bash sb add rh2 443 auto dl.google.com ``` -------------------------------- ### sb url 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成配置的 URL 链接,可指定协议名称。 ```bash sb url ``` ```bash sb url tcp ``` ```bash sb url hy ``` ```bash sb url tls ``` -------------------------------- ### sb fix-config.json Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 修复 config.json 文件。 ```APIDOC ## [CLI] sb fix-config.json ### Description 修复 config.json 文件。 ### Usage `sb fix-config.json` ``` -------------------------------- ### 设置伪装网站 (sb web tls) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 快速设置伪装网站,适用于添加了 *TLS 协议的配置。 ```bash sb web tls ``` -------------------------------- ### 添加配置命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 使用 sb add 命令添加不同协议的配置。可选参数不存在时默认为 auto,仅 *TLS 相关协议配置必须提供域名。 ```bash sb add reality ``` ```bash sb add reality 443 auto dl.google.com ``` ```bash sb add hy ``` ```bash sb add ss ``` ```bash sb add tcp ``` -------------------------------- ### sb add Trojan (WS/H2/HTTPUpgrade)-TLS 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 Trojan 带 TLS 的配置,支持 WS、H2、HTTPUpgrade 传输。可选参数:域名、UUID、路径。用法:`sb add [tws | th2 | vhu] [host] [uuid] [/path]`。注意:`vhu` 在此处表示 Trojan-HTTPUpgrade-TLS。 ```bash sb add tws ``` ```bash sb add th2 ``` ```bash sb add vhu ``` ```bash sb add tws 233boy.com ``` ```bash sb add th2 233boy.com auto /h2 ``` ```bash sb add vhu 233boy.com auto /HTTPUpgrade ``` -------------------------------- ### sing-box help 命令输出 Source: https://github.com/233boy/sing-box/blob/main/README.md 显示 sing-box 脚本的完整帮助信息,包括所有可用命令和参数。使用 `sing-box help` 或 `sing-box h` 查看。 ```text sing-box script v1.0 by 233boy Usage: sing-box [options]... [args]... 基本: v, version 显示当前版本 ip 返回当前主机的 IP pbk 同等于 sing-box generate reality-keypair get-port 返回一个可用的端口 ss2022 返回一个可用于 Shadowsocks 2022 的密码 一般: a, add [protocol] [args... | auto] 添加配置 c, change [name] [option] [args... | auto] 更改配置 d, del [name] 删除配置** i, info [name] 查看配置 qr [name] 二维码信息 url [name] URL 信息 log 查看日志 更改: full [name] [...] 更改多个参数 id [name] [uuid | auto] 更改 UUID host [name] [domain] 更改域名 port [name] [port | auto] 更改端口 path [name] [path | auto] 更改路径 passwd [name] [password | auto] 更改密码 key [name] [Private key | auto] [Public key] 更改密钥 method [name] [method | auto] 更改加密方式 sni [name] [ ip | domain] 更改 serverName new [name] [...] 更改协议 web [name] [domain] 更改伪装网站 进阶: dns [...] 设置 DNS dd, ddel [name...] 删除多个配置** fix [name] 修复一个配置 fix-all 修复全部配置 fix-caddyfile 修复 Caddyfile fix-config.json 修复 config.json import 导入 sing-box/v2ray 脚本配置 管理: un, uninstall 卸载 u, update [core | sh | caddy] [ver] 更新 U, update.sh 更新脚本 s, status 运行状态 start, stop, restart [caddy] 启动, 停止, 重启 t, test 测试运行 reinstall 重装脚本 测试: debug [name] 显示一些 debug 信息, 仅供参考 gen [...] 同等于 add, 但只显示 JSON 内容, 不创建文件, 测试使用 no-auto-tls [...] 同等于 add, 但禁止自动配置 TLS, 可用于 *TLS 相关协议 其他: bbr 启用 BBR, 如果支持 bin [...] 运行 sing-box 命令, 例如: sing-box bin help [...] [...] 兼容绝大多数的 sing-box 命令, 例如: sing-box generate uuid h, help 显示此帮助界面 谨慎使用 del, ddel, 此选项会直接删除配置; 无需确认 反馈问题) https://github.com/233boy/sing-box/issues 文档(doc) https://233boy.com/sing-box/sing-box-script/ ``` -------------------------------- ### 更新核心、脚本或 Caddy (sb update) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 用于更新 sing-box 核心、脚本或 Caddy。可指定核心版本,如 v1.8.13。 ```bash sb update ``` ```bash sb update core ``` ```bash sb update core v1.8.13 ``` ```bash sb update sh ``` ```bash sb update caddy ``` -------------------------------- ### sb [option] [name] Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 直接使用选项名称来更改配置,无需指定协议。 ```APIDOC ## [CLI] sb [option] [name] [...] ### Description 直接使用选项名称来更改配置,无需指定协议。 ### Usage `sb [option] [name] [...]` ### Parameters - **option** (string) - Required - 选项名称,如 id、port、host、web、sni 等。 - **name** (string) - Optional - 协议名称,如 tcp、tls、reality 等。 - **value** (string) - Optional - 选项的新值,或 `auto` 自动生成。 ### Examples - `sb id` - 更改 UUID - `sb port` - 更改端口 - `sb port tcp 233` - 更改一个 tcp 配置的端口为 233 - `sb id tcp` - 更改一个 tcp 配置的 UUID - `sb id tcp auto` - 更改一个 tcp 配置的 UUID,并且 UUID 自动创建 - `sb host tls 233boy.com` - 更改一个 tls 配置的域名为 233boy.com - `sb web tls example.com` - 更改一个 tls 配置的伪装网站为 example.com - `sb sni reality 1.1.1.1` - 更改一个 reality 配置的 SNI 为 1.1.1.1 ``` -------------------------------- ### sb qr 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成配置的二维码,可指定协议名称。 ```bash sb qr ``` ```bash sb qr tcp ``` ```bash sb qr hy ``` ```bash sb qr tls ``` -------------------------------- ### sb no-auto-tls 命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 no-auto-tls 参数与 add 用法相同,但禁止自动配置 TLS,可用于 *TLS 相关协议。用法:`sb no-auto-tls [protocol] [args... | auto]`。适合手动配置 TLS(如使用 NGINX)的场景。 ```bash sb no-auto-tls ``` ```bash sb no-auto-tls wss ``` ```bash sb no-auto-tls vh2 233boy.com ``` ```bash sb no-auto-tls vhu 233boy.com ``` -------------------------------- ### 备份脚本安装命令 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 从 GitHub 下载并安装 sing-box 脚本的备份版本。需要将命令中的 233boy 替换为你的 GitHub 用户名。 ```bash wget https://github.com/233boy/sing-box/archive/main.tar.gz -O sing-box-main.tar.gz;tar -zxvf sing-box-main.tar.gz;cd sing-box-main;chmod +x i*;./i* -l ``` -------------------------------- ### sb add 完整协议名称示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 `sb add [protocol]` 中的 protocol 可以使用完整的协议名称,与简化名称等效。例如 `sb add Hysteria2` 等同于 `sb add hy`,`sb add Shadowsocks` 等同于 `sb add ss`。 ```bash sb add Hysteria2 ``` ```bash sb add hy ``` ```bash sb add Shadowsocks ``` ```bash sb add ss ``` -------------------------------- ### 添加 Hysteria2 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 Hysteria2 配置,可选参数:端口,password。hy 可换成 hy2 或 Hysteria2。 ```bash sb add trojan [port] [password] ``` ```bash sb add hy ``` ```bash sb add hy 443 ``` -------------------------------- ### 查看配置命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 使用 sb info 命令查看配置信息。 ```bash sb info ``` ```bash sb info REALITY ``` ```bash sb info tcp ``` -------------------------------- ### 查看或设置日志级别 (sb log) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 查看 sing-box 实时日志或设置日志级别。使用 sb log del 删除日志文件,sb log none 禁止生成日志文件。 ```bash sb log ``` ```bash sb log [level] ``` ```bash sb log del ``` ```bash sb log none ``` -------------------------------- ### 更改配置命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 使用 sb change 命令更改配置。例如更改 REALITY 的 SNI 或 TCP 的端口。 ```bash sb change ``` ```bash sb change reality ``` ```bash sb change reality sni 1.1.1.1 ``` ```bash sb sni reality 1.1.1.1 ``` ```bash sb change tcp ``` ```bash sb change tcp port auto ``` ```bash sb port tcp auto ``` -------------------------------- ### sb info 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 查看配置信息,可指定协议名称。 ```bash sb info ``` ```bash sb info tcp ``` ```bash sb info tuic ``` ```bash sb info tls ``` -------------------------------- ### 添加 Trojan 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 Trojan 配置,可选参数:端口,password。 ```bash sb add trojan [port] [password] ``` ```bash sb add trojan ``` ```bash sb add trojan 443 ``` -------------------------------- ### sb bin 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 直接调用 sing-box 核心命令,兼容所有 sing-box 命令。 ```bash sb bin help ``` ```bash sb generate uuid ``` -------------------------------- ### 添加 TUIC 配置 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 添加 TUIC 配置,可选参数:端口,UUID。 ```bash sb add tuic [port] [uuid] ``` ```bash sb add tuic ``` ```bash sb add tuic 443 ``` -------------------------------- ### 卸载脚本 (sb uninstall) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 卸载 sing-box 脚本。 ```bash sb uninstall ``` -------------------------------- ### sb bin Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 直接调用 sing-box 核心运行相关命令,完全兼容所有 sing-box 命令。 ```APIDOC ## [CLI] sb bin ### Description 直接调用 sing-box 核心运行相关命令,完全兼容所有 sing-box 命令。 ### Usage `sb bin [...]` ### Examples - `sb bin help` - `sb generate uuid` ### Supported Commands 默认兼容的命令: check | completion | format | generate | geoip | geosite | merge | rule-set | run | tools ``` -------------------------------- ### sb qr Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成配置的二维码。 ```APIDOC ## [CLI] sb qr ### Description 生成配置的二维码。 ### Usage `sb qr [name]` ### Parameters - **name** (string) - Optional - 协议名称,如 tcp、hy、tls 等。 ### Examples - `sb qr` - 查看配置的二维码 - `sb qr tcp` - 查看一个 tcp 配置的二维码 - `sb qr hy` - 查看一个 Hysteria2 配置的二维码 - `sb qr tls` - 查看一个 tls 配置的二维码 ``` -------------------------------- ### sb change 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 更改配置,支持指定协议和参数,auto 表示自动创建相关参数。 ```bash sb change ``` ```bash sb change tcp ``` ```bash sb change tcp port 233 ``` ```bash sb change tcp port auto ``` ```bash sb change tuic id auto ``` ```bash sb change tls host 233boy.com ``` ```bash sb change tls web example.com ``` ```bash sb change reality sni 1.1.1.1 ``` -------------------------------- ### sb ddel 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 删除多个配置,仅当名称唯一时才会删除。谨慎使用。 ```bash sb ddel ``` ```bash sb ddel tcp tuic ``` -------------------------------- ### sb gen 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成 JSON 配置但不创建,仅供测试。 ```bash sb gen ss ``` ```bash sb gen tcp ``` ```bash sb gen hy2 ``` ```bash sb gen tuic ``` ```bash sb gen reality 2333 ``` ```bash sb gen vws 233boy.com ``` -------------------------------- ### sb bbr 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 启用 BBR 优化。 ```bash sb bbr ``` -------------------------------- ### sb update Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 更新脚本或核心。 ```APIDOC ## [CLI] sb update ### Description 更新脚本或核心。 ### Usage `sb update [core | sh | caddy] [ver]` ### Parameters - **core** (string) - Optional - 更新 sing-box 核心。 - **sh** (string) - Optional - 更新脚本。 - **caddy** (string) - Optional - 更新 Caddy。 - **ver** (string) - Optional - 指定版本。 ``` -------------------------------- ### sb url Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成配置的 URL 链接。 ```APIDOC ## [CLI] sb url ### Description 生成配置的 URL 链接。 ### Usage `sb url [name]` ### Parameters - **name** (string) - Optional - 协议名称,如 tcp、hy、tls 等。 ### Examples - `sb url` - 查看配置的 URL 链接 - `sb url tcp` - 查看一个 tcp 配置的 URL 链接 - `sb url hy` - 查看一个 Hysteria2 配置的 URL 链接 - `sb url tls` - 查看一个 tls 配置的 URL 链接 ``` -------------------------------- ### sb info Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 查看配置信息。 ```APIDOC ## [CLI] sb info ### Description 查看配置信息。 ### Usage `sb info [name]` ### Parameters - **name** (string) - Optional - 协议名称,如 tcp、tuic、tls 等。 ### Examples - `sb info` - 查看配置 - `sb info tcp` - 查看一个 tcp 配置 - `sb info tuic` - 查看一个 tuic 配置 - `sb info tls` - 查看一个 tls 配置 ``` -------------------------------- ### 删除配置命令示例 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 使用 sb del 命令删除配置。谨慎使用 del 参数。 ```bash sb del ``` ```bash sb del REALITY ``` ```bash sb del tcp ``` -------------------------------- ### sb del 命令用法 Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 删除配置,可指定协议名称。谨慎使用。 ```bash sb del ``` ```bash sb del tcp ``` ```bash sb del tuic ``` ```bash sb del tls ``` -------------------------------- ### sb change Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 更改配置。支持通过指定协议和选项来修改特定配置,或使用 auto 自动生成参数。 ```APIDOC ## [CLI] sb change ### Description 更改配置。支持通过指定协议和选项来修改特定配置,或使用 auto 自动生成参数。 ### Usage `sb change [protocol] [option] [value]` ### Parameters - **protocol** (string) - Optional - 协议名称,如 tcp、tuic、tls、reality 等。 - **option** (string) - Optional - 要更改的选项,如 port、id、host、web、sni 等。 - **value** (string) - Optional - 选项的新值,或 `auto` 自动生成。 ### Examples - `sb change` - 更改配置 - `sb change tcp` - 更改一个 tcp 相关的配置 - `sb change tcp port 233` - 更改一个 TCP 配置的端口为 233 - `sb change tcp port auto` - 更改一个 TCP 配置的端口,并且端口自动创建 - `sb change tuic id auto` - 更改一个 TUIC 配置的 UUID,并且 UUID 自动创建 - `sb change tls host 233boy.com` - 更改一个 tls 配置的域名为 233boy.com - `sb change tls web example.com` - 更改一个 tls 配置的伪装网站为 example.com - `sb change reality sni 1.1.1.1` - 更改一个 reality 配置的 SNI 为 1.1.1.1 ``` -------------------------------- ### sb gen Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 生成配置的 JSON 内容,但不创建配置,仅供测试使用。 ```APIDOC ## [CLI] sb gen ### Description 生成配置的 JSON 内容,但不创建配置,仅供测试使用。 ### Usage `sb gen [protocol] [args... | auto]` ### Parameters - **protocol** (string) - Required - 协议名称,如 ss、tcp、hy2、tuic、reality、vws 等。 - **args** (string) - Optional - 参数,如端口、域名等。 ### Examples - `sb gen ss` - `sb gen tcp` - `sb gen hy2` - `sb gen tuic` - `sb gen reality 2333` - `sb gen vws 233boy.com` ``` -------------------------------- ### sb ddel Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 删除多个配置。 ```APIDOC ## [CLI] sb ddel ### Description 删除多个配置。 ### Usage `sb ddel [name...]` ### Parameters - **name** (string) - Optional - 协议名称,可多个,如 tcp tuic。 ### Examples - `sb ddel` - 删除配置 - `sb ddel tcp tuic` - 同时删除一个 tcp,一个 tuic 配置 ### Notes - 此处的 `[name]` 只有匹配到相关配置是唯一时,才会执行删除。 - 例如,假设你当前有两个 tcp 配置,使用 `sb ddel tcp` 是不会删除任何文件的。 ### Warning 谨慎使用此选项。 ``` -------------------------------- ### 查看运行状态 (sb status) Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 查看 sing-box 的运行状态。 ```bash sb status ``` -------------------------------- ### sb del Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 删除配置。 ```APIDOC ## [CLI] sb del ### Description 删除配置。 ### Usage `sb del [name]` ### Parameters - **name** (string) - Optional - 协议名称,如 tcp、tuic、tls 等。 ### Examples - `sb del` - 删除配置 - `sb del tcp` - 删除一个 tcp 配置 - `sb del tuic` - 删除一个 tuic 配置 - `sb del tls` - 删除一个 tls 配置 ### Warning 谨慎使用此选项。 ``` -------------------------------- ### sb bbr Source: https://github.com/233boy/sing-box/wiki/sing-box一键安装脚本 启用 BBR 优化。 ```APIDOC ## [CLI] sb bbr ### Description 启用 BBR 优化。 ### Usage `sb bbr` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.