npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gf-packages-cli

v1.0.5

Published

Android APP 包管理工具,通过 ADB 连接安卓设备,实现第三方应用的**导出(APKS)**和**卸载**。

Readme

packages-cli

Android APP 包管理工具,通过 ADB 连接安卓设备,实现第三方应用的导出(APKS)卸载

安装

npm install -g gf-packages-cli
# 或
node bin/cli.js

全局安装后可直接使用 gf-packages-cli 命令。

使用方式

1. 交互式菜单(推荐)

packages-cli

进入菜单后选择功能:

  • 📤 导出指定包 — 导出第三方应用的 APK 并打包为 .apks
  • 🚫 删除设备指定 APP 及文件 — 卸载第三方应用

2. 子命令模式

export — 导出应用

gf-packages-cli export                      # 交互式选择设备和应用
gf-packages-cli export -a                   # 导出所有第三方应用
gf-packages-cli export -d <设备序列号>       # 指定设备
gf-packages-cli export -o D:/myApks         # 指定输出目录
gf-packages-cli export -p com.xx.xx com.yy.yy   # 指定包名  

选项:

| 参数 | 说明 | |------|------| | -d, --device <id> | 设备序列号(多设备时必填) | | -o, --output <dir> | 输出目录,默认交互式输入 | | -a, --all | 导出所有第三方应用 | | -p, --packages <pkgs...> | 指定包名,空格分隔 |

特性:

  • 输出目录持久化 — 首次输入后保存到 ~/.my-cli-config.json,下次询问是否复用
  • 实时进度条 — 拉取时显示 spinner + 百分比
  • 自动分包打包 — 自动拉取 base.apk + 所有 split apk,打包为 包名_版本.apks
  • 导出后可选卸载 — 导出完成后提示是否卸载已导出的应用

delete — 卸载应用

gf-packages-cli delete                      # 交互式选择
gf-packages-cli delete -a                   # 卸载所有第三方应用
gf-packages-cli delete -d <设备序列号>       # 指定设备
gf-packages-cli delete -p com.xx.xx         # 指定包名

3. 其他

gf-packages-cli -h       # 查看帮助
gf-packages-cli -v       # 查看版本

目录结构

bin/cli.js              # CLI 入口
src/
├── index.js            # 交互式菜单
├── exportPackage.js    # 导出命令
└── deletePackage.js    # 卸载命令
lib/
├── tools/adb.js        # ADB 工具函数(设备检测、命令执行)
└── common/appCommon.js # 公共逻辑(获取包名列表、选择包)

配置文件

路径:~/.gf-packages-cli-config.json

{ "outputDir": "C:\\Users\\HP\\Desktop\\apksInstall" }