Skip to content

命令一览

全局

命令说明
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 <files...> [options]
命令说明
ventu minify <files...>优速压图
ventu tinify <files...>TinyPNG 压缩

config

bash
ventu config [options]
选项说明
-a, --active-code <code>授权码
--show-secrets显示完整授权码
--clear删除 ~/.ventu.json

doctor

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

credits(积分)

bash
ventu credits [options]
ventu quota [options]

查询本月积分额度、已用与剩余。批量任务开始前会按「文件数 × 单耗」预检;不足则不执行。结束后汇总本次消耗与剩余。各命令单耗见 积分消耗说明

选项说明
-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
--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
--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
--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(图片压缩)

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
--jsonJSON 输出

帮助

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

联系微信:ahsira