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

@acring/feishu-bitable-cli

v1.0.4

Published

飞书多维表格命令行工具,支持按 URL 查询记录与下载附件

Readme

feishu-bitable-cli

一个面向飞书多维表格的命令行工具,支持通过表格 URL 查询记录、通过记录分享 URL 拉取单条详情、更新记录,以及下载记录附件。

安装

npm install -g @acring/feishu-bitable-cli

安装后可执行命令:

feishu-bitable --help

认证

优先级如下:

  1. --access-token
  2. 当前 shell 已导出的环境变量
  3. 当前工作目录下按顺序加载的环境文件:.env -> .env.local -> .env.<NODE_ENV> -> .env.<NODE_ENV>.local
  4. FEISHU_ACCESS_TOKEN
  5. LARK_ACCESS_TOKEN
  6. FEISHU_USER_ACCESS_TOKEN
  7. LARK_USER_ACCESS_TOKEN
  8. FEISHU_APP_ID + FEISHU_APP_SECRET
  9. LARK_APP_ID + LARK_APP_SECRET

可参考 .env.example

table-url 也支持通过环境变量提供,优先级如下:

  1. 命令行参数中的 table-url
  2. 当前 shell / .env* 中的 FEISHU_BITABLE_TABLE_URL
  3. LARK_BITABLE_TABLE_URL
  4. FEISHU_TABLE_URL
  5. LARK_TABLE_URL

用法

查询整张表的记录:

feishu-bitable records "https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx&view=vewxxxx"

查询整张表的字段:

feishu-bitable fields "https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx&view=vewxxxx"

如果已经在环境变量里配置了 table-url,可以直接省略:

export FEISHU_BITABLE_TABLE_URL="https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx&view=vewxxxx"
feishu-bitable records

同样也可以直接查询字段:

feishu-bitable fields

导出单条记录并下载附件:

feishu-bitable record \
  "https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx" \
  "https://xxx.feishu.cn/record/recuXXXXXX" \
  --output ./record-1

配置环境变量后,也可以只传 record-url

feishu-bitable record \
  "https://xxx.feishu.cn/record/recuXXXXXX" \
  --output ./record-1

更新单条记录:

feishu-bitable update-record \
  "https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx" \
  "recxxxxxxxx" \
  --fields '{"文本":"新的内容","数字":100}'

配置环境变量后,也可以只传 record-id

feishu-bitable update-record \
  "recxxxxxxxx" \
  --fields '{"文本":"新的内容","数字":100}'

如果字段 JSON 较复杂,也可以从文件读取。文件内容既可以是完整请求体中的 fields 对象,也可以是 { "fields": { ... } }

feishu-bitable update-record \
  "https://xxx.feishu.cn/wiki/xxxx?table=tblxxxx" \
  "recxxxxxxxx" \
  --fields-file ./fields.json \
  --ignore-consistency-check

开发阶段直接运行 TypeScript 入口:

npm run dev -- --help

发布到 npm

发布前检查:

npm install
npm run pack:check

首次发布 scoped 包建议确认 public access:

npm login
npm publish

当前包已在 package.json 中设置 "publishConfig": { "access": "public" }