Use scripts/excel_sync_bitable.py. Require an explicit --apply before any Base write.
lark-cli auth status if the user identity or permission is uncertain.base +url-resolve.Preview a keyed sync (no write):
python scripts/excel_sync_bitable.py sync --input .\orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号"
Apply the reviewed sync and read back its keys:
python scripts/excel_sync_bitable.py sync --input .\orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --apply
Handle source columns that do not exist in the target Base:
# Show missing fields and their inferred types (default; no write)
python scripts/excel_sync_bitable.py sync --input .\orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号"
# Intentionally ignore absent columns
python scripts/excel_sync_bitable.py sync --input .\orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --missing-fields skip --apply
# Create absent text/number/datetime/checkbox fields, then import
python scripts/excel_sync_bitable.py sync --input .\orders.xlsx --url "https://example.feishu.cn/base/..." --key "订单号" --missing-fields create --apply
Create a Base from a workbook:
python scripts/excel_sync_bitable.py create --input .\orders.xlsx --app-name "订单数据" --table-name "订单" --apply
Export one Base table:
python scripts/excel_sync_bitable.py export --url "https://example.feishu.cn/base/..." --table-name "订单" --output .\orders.xlsx
sync updates only records whose business key matches exactly; it does not delete remote records.--missing-fields skip or --missing-fields create --apply.--apply only after the user has confirmed the target and counts.我已将「飞书多维表格-Excel同步」整理成可直接安装的 prompt。点击下方按钮复制,然后粘贴给你的 AI 助手即可加载使用。