iMole:一个帮你清理优化 iPhone 存储空间的开源免费 cli 工具

查看 12|回复 0
作者:plane   
0x01
不知道大家用过 mole 吗,很棒的一款终端软件可以帮你清理和优化 mac 电脑的存储空间。但是他只支持 mac 。而我主要的困扰是 iPhone, 对于我们这种 iPhone 手机常年处于存储满了,iCloud 也早就满了,老是得删东西才能下新的应用的人来说,太难受了。而且这么多年了,没有什么好用的免费的软件可以帮忙。
所以我就想做一个 iPhone 版本的 mole ,我把他命名为:iMole。

0x02
他的使用非常简单,把你的 iPhone 连接上你的电脑(最好是 mac 电脑),然后让 agent 自己使用 iMole 帮你检测优化,或者你自己去执行都可以。
直接把 github 地址( https://github.com/chenhg5/imole )丢给你的 agent 去安装,或者执行:
npm install -g @getimole/imole
然后,你可以开始使用了。

使用示例:
# 查看存储占用
imole scan --summary
# 找出最大的视频文件
imole scan --top 20 --only videos
# 备份 90 天前的视频
imole backup --to ~/iphone-backup --only videos --older-than 90d --dry-run
imole backup --to ~/iphone-backup --only videos --older-than 90d
# 删除已备份的文件
imole clean --manifest ~/iphone-backup/manifest.json --yes
查看空间统计:
imole scan --summary
Scanning media…
Querying app storage…
iMole Storage Summary
Media:     28.9GiB · 9960 files
  Photos:  10.3GiB · 6579 files
  Videos:  18.6GiB · 3261 files
  Top video: IMG_7523.MOV · 327.7MiB
Device:   ███████████████░  99.2% 1.9GiB free
Apps:      35.9GiB · 49 apps
  App code: 13.9GiB
  App data: 22.0GiB
  Top app:  网易云音乐 · 3.2GiB
Recommended next steps:
  imole scan --top 30 --only videos
  imole scan apps --top 20
查看占用最多的图片或视频:
imole scan --top 10 --only videos
Scanning device… (may take ~15 s for USB)
Device ready: imagecapture:山哥本山
Top 30 Videos
1. IMG_7523.MOV                 327.7MiB  2025-07-30
2. IMG_7510.MOV                 306.8MiB  2025-07-29
3. IMG_4109.MOV                 270.8MiB  2024-09-15
4. IMG_9441.MOV                 267.3MiB  2026-04-06
5. VRQA7650.MP4                 260.3MiB  2025-07-20
6. XCGC7110.MP4                 172.9MiB  2025-07-18
7. IMG_4113.MOV                 151.7MiB  2024-09-15
8. AYXW6719.MP4                 143.3MiB  2025-07-18
9. IMG_5865.MOV                 142.3MiB  2025-01-11
10. IMG_7036.MOV                 141.8MiB  2025-06-15
0x03
开源不易,如果感兴趣或者能帮助到你,欢迎点赞转发!
地址: https://github.com/chenhg5/imole
欢迎加入 telegram 群一起交流: https://t.me/+ZpgBu1dlmCszODBl
您需要登录后才可以回帖 登录 | 立即注册

返回顶部