Lark / Feishu CLI
Read the right resource, then preview and verify changes
The official CLI and companion skills read documents, extract Base records, and make inspectable updates to specified data.

- GitHub stars
- 17,887
- Version
- 1.0.98
- Checked
Start by reading one document outline
Choose the platform and user identity, authorize document reading, and retrieve real headings and block IDs. Then summarize the relevant sections. Use the update task when you are ready to change online data.
Pick a task and get started
Install and configure your account in a personal terminal, then give the assistant a document URL. Start with document-read access and add only the permissions required by later Base tasks.
Inspect the outline, then read relevant sections of meeting notes, proposals, or long documents.
Install the CLI and companion skills in two steps
These two steps install the reviewed CLI release 1.0.98 and the current repository skills globally. The author’s one-step npx @larksuite/cli@latest install also proceeds to app configuration and authorization in an interactive terminal. Choose Feishu or Lark before configuring, then check the installed command help.
Read the author’s setup guidenpm install -g @larksuite/[email protected] npx skills add larksuite/cli -y -gFirst run: choose the platform and fetch an outline
Create brief.md in the current workspace with a full Docx/Wiki URL you can read, the relevant sections, and the summary goal. Run the two installation commands above. On a new setup, run lark-cli config init and choose an existing or new app and Feishu or Lark in the interactive form. Reuse an existing configuration instead of initializing it again. Complete the platform confirmation yourself, then run lark-cli auth login --scope "docx:document:readonly". Check brand, identity, verified, and the user status with lark-cli auth status --json --verify; verification contacts the server. Paste task one into the assistant and check that its headings and block IDs belong to your document. If the app has not enabled the scope, its administrator must enable it before user authorization.
Read the identity and authorization guideGive your AI this first task
These are editorial operating examples. Replace URLs, paths, fields, and IDs with your own. The outputs are expected deliverables, not results from our use of an account.
Use lark-doc and lark-cli to read the document in brief.md and summarize decisions, actions, and open questions. Explicitly use --as user throughout. Read the online document and write a local summary without changing its content. Check lark-cli docs +fetch --help. Fetch the outline with lark-cli docs +fetch --doc "REAL_DOCUMENT_URL" --scope outline --max-depth 3 --doc-format xml --detail with-ids --as user --format json. Use returned headings and block IDs to select sections, then fetch with --scope section --start-block-id "REAL_BLOCK_ID", keeping XML and with-ids. Save complete JSON responses under source/ in the current workspace, retaining content, reference_map, revision_id, and tips within data.document together. State the coverage of excerpts, truncated comments, and embedded-table references. Retrieve missing relevant content before summarizing it; do not present fragments as a full read. Compare revision_id across the outline and section responses. Where the API supports that historical revision, pass --revision-id on subsequent reads to keep one version. If the document has changed and the earlier revision cannot be fetched, refresh the outline and relevant sections and state the version summarized. Write summary.md with source headings and block IDs for each decision or action. Use only stated owners and deadlines, marking missing details. Keep document statements, comment opinions, and your own synthesis distinct. Check the business response ok, identity, and exit status, then spot-check the summary against source. For permission failures, identify the missing scope or resource access and retain the user identity rather than switching to bot automatically.
Check what you receive
- A decision/action summary with document revision, headings, and block IDs.
- Complete source JSON, preserving document and comment references together.
- Coverage limits and a record of source spot-checks.
More about this skill
larksuite/cli is the official Lark/Feishu command-line tool, maintained by the larksuite team. Its lark-* skills explain command choice, inputs, and checks. The executable calls the service using a configured app and identity. Installing a skill does not grant access to organization data.
There are three entry levels: plus-prefixed shortcuts for common operations, API commands for particular platform methods, and lark-cli api for direct endpoint calls. This page develops three verified shortcut paths: locating document content, extracting Base records, and updating specified test records.
A useful result includes evidence of its scope. Document summaries need source sections and versions; data extraction needs pagination checks; updates need a record-by-record comparison. The prompts make these checks part of the work and distinguish ordinary JSON responses, NDJSON artifacts, and dry-run previews.
Sources and verification
Sources checked
Reviewed at commit c910e89. Core command implementations used here match the v1.0.98 release tree. We did not install, sign in, read local credentials, or call business APIs.