{"id":23898067,"url":"https://github.com/byteszero/clear_flutter_build","last_synced_at":"2025-04-10T17:05:14.771Z","repository":{"id":85308907,"uuid":"440020509","full_name":"BytesZero/clear_flutter_build","owner":"BytesZero","description":"批量清理 Flutter 项目 [build、ios/Pods] 目录，优化电脑空间，顺手练习一下 Dart CLI","archived":false,"fork":false,"pushed_at":"2023-10-21T15:33:03.000Z","size":2213,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T14:46:13.890Z","etag":null,"topics":["cleanup-script","cool","flutter","flutter-cli","mac"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/cf_cli","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BytesZero.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":"CHANGELOG-zh_CN.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-20T02:29:35.000Z","updated_at":"2023-11-09T05:39:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"71ecf319-c3b9-4540-885a-ebde3eaf1d96","html_url":"https://github.com/BytesZero/clear_flutter_build","commit_stats":null,"previous_names":["byteszero/clear_flutter_build"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Fclear_flutter_build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Fclear_flutter_build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Fclear_flutter_build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BytesZero%2Fclear_flutter_build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BytesZero","download_url":"https://codeload.github.com/BytesZero/clear_flutter_build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260157,"owners_count":21074207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cleanup-script","cool","flutter","flutter-cli","mac"],"created_at":"2025-01-04T17:19:49.629Z","updated_at":"2025-04-10T17:05:14.750Z","avatar_url":"https://github.com/BytesZero.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"| [English](https://github.com/yy1300326388/clear_flutter_build) | 简体中文 |\n|-------|-------|\n\n## cf\n\n批量清理 Flutter 项目 [`build`、`ios/Pods`] 目录，优化电脑空间，顺手练习一下 Dart CLI\n\n## 安装\u0026更新\n\n- 方法一\n\n```\ndart pub global activate cf_cli\n```\n\n- 方法二\n\n```\ndart pub global activate -sgit https://github.com/yy1300326388/clear_flutter_build.git\n```\n\n\n## 运行效果\n\n- 清理 `build` \n\n```\n➜  cf\n🚀 清理模式:build\n🎉 全部清理完毕\n```\n\n- 清理 `ios/Pods`\n\n```\n➜  cf -m pods\n🚀 清理模式:pods\n🎉 全部清理完毕\n```\n\n- 清理 `build` 和 `ios/Pods`\n\n```\n➜  cf -m all\n🚀 清理模式:all\n🎉 全部清理完毕\n```\n\n- 版本信息\n\n```\n➜  cf -v\n🚀 CF Version：1.0.0\n🐦 Dart：2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on \"macos_x64\"\n💻 OS：10.16\n```\n\n- 帮助说明\n\n```\n➜  cf -h\n-m, --mode            🚀 设置清理模式 build 是 build 文件夹，pods 是 ios/Pods 文件夹, all 全部文件夹\n                      [build (default), pods, all]\n-v, --[no-]version    📦️ 获取版本\n-h, --[no-]help       💡 帮助说明\n```\n\n\n## 我的清理结果\n\n|清理前|清理后|\n|--|--|\n|![](https://user-images.githubusercontent.com/8764899/146867779-b0e86b0a-6e7f-473a-b4e1-d69fbfd5bc3c.png)|![](https://user-images.githubusercontent.com/8764899/146867789-b5284afa-c016-4727-a0a9-723ee3616c8f.png)|\n\n\u003e `CleanMyMac` 都无法拯救我的磁盘空间，所以写了 cf_cli 工具\n\n## ☕请我喝咖啡\n\n\u003ca href=\"https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/pay_qr_code/pay_qr_code.png\"\u003e\n    \u003cimg width=\"300\" alt=\"coffee\" src=\"https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/pay_qr_code/pay_qr_code.png\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteszero%2Fclear_flutter_build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteszero%2Fclear_flutter_build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteszero%2Fclear_flutter_build/lists"}