Skip to content

命令一览 ​

平台

支持 macOS / Linux x64(glibc)/ Windows x64,ventu minify 在 Linux 上同样可用。详见 平台与命令支持。

全局 ​

命令说明
ventu config保存 / 查看配置
ventu doctor检查环境与连通性
ventu credits查询积分余额(别名 quota)

抠图 ​

bash
ventu rmvbg <type> <files...> [options]
命令说明
ventu rmvbg pre <files...>优质抠图
ventu rmvbg hd <files...>高清抠图
ventu rmvbg bulk <files...>海量抠图

压缩 ​

bash
ventu minify <files...> [options]
ventu tinify-v2 <files...> [options]
ventu tinify <files...> [options]
命令说明Linux
ventu minify <files...>优速压图✅
ventu tinify-v2 <files...>TinyPNG V2(推荐)✅
ventu tinify <files...>TinyPNG 标准✅

生图 ​

bash
ventu poster [options] [images...]
命令说明
ventu poster专业生图(文生图 / 图文 / 多图)

config ​

bash
ventu config [options]
选项说明
-a, --active-code <code>纹图2 授权码
-s, --server <url>纹图2 服务端(默认 http://wentu2.mintree.site:8787)
--show-secrets显示完整授权码
--clear删除 ~/.ventu.json(下次会生成新设备 ID)

doctor ​

bash
ventu doctor [options]
选项说明
-a, --active-code <code>授权码
--jsonJSON 输出

credits(积分) ​

bash
ventu credits [options]
ventu quota [options]

查询积分额度、已用与剩余(与纹图2 桌面端同一本账)。批量任务开始前会按「文件数 × 授权单价」预检;不足则不执行。结束后汇总本次消耗与剩余。单价见 积分消耗说明。

选项说明
-a, --active-code <code>授权码
--jsonJSON 输出

rmvbg pre(优质抠图) ​

bash
ventu rmvbg pre [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>输出目录
--size <px>最长边限制(0=不限制)
--bg <color>背景色,如 #ffffff
--jpg输出 JPG
--suffix <s>文件名后缀(默认 _pot)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将仍失败的文件路径写入指定文件
--jsonJSON 输出

rmvbg hd(高清抠图) ​

bash
ventu rmvbg hd [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>输出目录
--size <px>最长边限制(0=不限制)
--bg <color>背景色,如 #ffffff
--jpg输出 JPG
--suffix <s>文件名后缀(默认 _zot)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将仍失败的文件路径写入指定文件
--jsonJSON 输出

rmvbg bulk(海量抠图) ​

bash
ventu rmvbg bulk [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>输出目录
--size <px>最长边限制(0=不限制)
--bg <color>背景色,如 #ffffff
--jpg输出 JPG
--suffix <s>文件名后缀(默认 _nobg)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将仍失败的文件路径写入指定文件
--jsonJSON 输出

minify(优速压图) ​

bash
ventu minify [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>导出根目录(保持相对结构)
--overwrite覆盖写出(无后缀)
--mode <mode>normal / deep(默认 normal)
--suffix <s>文件名后缀(默认 _mini;--overwrite 时忽略)
-c, --concurrency <n>并发数(默认 4)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将失败文件路径写入指定文件
--jsonJSON 输出

tinify-v2(TinyPNG V2) ​

bash
ventu tinify-v2 [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>输出目录
--format <fmt>auto / jpeg / png / webp(默认 auto)
--resize <method>none / scale / fit / cover / thumb
--width <px>目标宽度
--height <px>目标高度
--suffix <s>文件名后缀(默认 _tiny)
-c, --concurrency <n>并发数(默认 2)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将仍失败的文件路径写入指定文件
--jsonJSON 输出

tinify(TinyPNG 标准) ​

bash
ventu tinify [files...] [options]
选项说明
-a, --active-code <code>授权码
-o, --out <dir>输出目录
--format <fmt>auto / jpeg / png / webp(默认 auto)
--resize <method>none / scale / fit / cover / thumb
--width <px>目标宽度
--height <px>目标高度
--suffix <s>文件名后缀(默认 _tiny)
-c, --concurrency <n>并发数(默认 2)
--retry-failed首轮结束后自动重试失败项一次(默认关)
--export-failed <file>将仍失败的文件路径写入指定文件
--jsonJSON 输出

poster(专业生图) ​

bash
ventu poster [images...] [options]
选项说明
-p, --prompt <text>提示词(必填,最多 800 字)
--category <mode>text / edit / refs(默认 text)
--size <level>1K / 1.5K / 2K(默认 2K)
--aspect <ratio>宽高比(默认 3:4;edit 可用 original)
-o, --out <dir>输出目录
--name <stem>文生图输出文件名前缀(默认 生图)
-a, --active-code <code>授权码
--jsonJSON 输出

帮助 ​

bash
ventu --help
ventu rmvbg --help
ventu rmvbg pre --help
ventu rmvbg hd --help
ventu rmvbg bulk --help
ventu minify --help
ventu tinify-v2 --help
ventu tinify --help
ventu poster --help

联系微信:ahsira