主题
命令一览
全局
| 命令 | 说明 |
|---|---|
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> | 授权码 |
--json | JSON 输出 |
credits(积分)
bash
ventu credits [options]
ventu quota [options]查询本月积分额度、已用与剩余。批量任务开始前会按「文件数 × 单耗」预检;不足则不执行。结束后汇总本次消耗与剩余。各命令单耗见 积分消耗说明。
| 选项 | 说明 |
|---|---|
-a, --active-code <code> | 授权码 |
--json | JSON 输出 |
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) |
--json | JSON 输出 |
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) |
--json | JSON 输出 |
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) |
--json | JSON 输出 |
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> | 将失败文件路径写入指定文件 |
--json | JSON 输出 |
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) |
--json | JSON 输出 |
帮助
bash
ventu --help
ventu rmvbg --help
ventu rmvbg pre --help
ventu rmvbg hd --help
ventu rmvbg bulk --help
ventu minify --help
ventu tinify --help