Skip to content

Feature request: import local CSV/Excel into Base (Bitable) #5

@timzhong1024

Description

@timzhong1024

Summary

Add a command to import a local CSV or Excel file directly into Lark Base / Feishu Bitable.

Problem

lark-cli can create a Base, create tables/fields/records, and upload files to Drive, but it does not seem to provide a direct way to import a user's existing spreadsheet into Base.

For a common workflow, users already have data in .csv, .xlsx, or .xls and want to create a Base from that file without manually recreating schema and records.

Expected capability

Support something along these lines:

lark-cli base import --file ./data.csv
lark-cli base import --file ./data.xlsx --sheet Sheet1
lark-cli base import --file ./data.xlsx --base-name "My Base" --table-name "Sheet1"

Expected behavior

  • Accept local CSV and Excel files
  • Create a new Base, or import into an existing Base/table
  • Infer columns and create matching fields automatically
  • Import rows as records
  • For Excel, allow selecting a sheet
  • Provide a dry-run / preview mode before writing
  • Return created base/table identifiers and URL

Why this matters

This is a very natural entry point for new users. "I have a spreadsheet, turn it into a Base" is one of the first tasks many users try.

Right now the workaround is to manually parse the file and then call base +table-create / base +record-upsert repeatedly, which is much more cumbersome than a single import command.

Possible scope

Even a first version that only supports CSV import into a newly created Base would already be very useful.

Metadata

Metadata

Assignees

Labels

domain/basePR touches the base domainenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions