分步AI代理指南,用于安装和配置lark-cli(飞书/Lark CLI)。为Claude、Manus和OpenClaw设计,主动引导用户...
An AI-native installation guide for lark-cli — the official Lark/Feishu CLI tool (6.7k ⭐, maintained by larksuite). Enables Claude, Manus, and OpenClaw to proactively guide users from zero to a fully authenticated lark-cli in minutes.
Why does this skill exist? Installing lark-cli involves a browser OAuth step that AI agents cannot complete on behalf of users. This skill provides the exact prompts and workflows for agents to extract authorization URLs from CLI output and present them to users at the right moment — making the otherwise tricky setup seamless.
ItemDetailRepogithub.com/larksuite/cliLatestv1.0.4Commands200+Agent Skills20 built-in (Calendar, IM, Docs, Base, Sheets, Tasks, Mail, Wiki, …)LicenseMITInstallnpm install -g @larksuite/cli
ScriptPurposescripts/check.jsDetect OS, Node.js version, and lark-cli install statescripts/install.jsGuide npm install -g @larksuite/cli + skills addscripts/config.jsGuide lark-cli config init --new — extracts browser URL for userscripts/auth.jsGuide lark-cli auth login --recommend — extracts OAuth URL for userscripts/verify.jsRun lark-cli auth status and summarize available Agent Skillsscripts/learn.jsShow first commands to try (calendar, im, docs, tasks)scripts/setup.jsFull guided pipeline — runs all steps in sequence
bash
# Full guided setup (recommended)
node scripts/setup.js
# Individual stages
node scripts/check.js # detect current state
node scripts/install.js # install lark-cli
node scripts/config.js # configure Feishu app credentials
node scripts/auth.js # authenticate via OAuth
node scripts/verify.js # verify and list available skills
node scripts/learn.js # first commands guide
# Language options
node scripts/setup.js --lang en
node scripts/setup.js --lang zh # default
text
Step 1 — Install
npm install -g @larksuite/cli
npx skills add larksuite/cli -y -g
Step 2 — Configure app credentials (run in background, extract URL → send to user)
lark-cli config init --new
Step 3 — Login (run in background, extract URL → send to user)
lark-cli auth login --recommend
Step 4 — Verify
lark-cli auth status
SkillDomainlark-sharedAuth, config, identity (auto-loaded)lark-calendarCalendar, agenda, eventslark-imMessages, group chats, reactionslark-docDocuments (Markdown)lark-driveFiles, uploads, downloadslark-sheetsSpreadsheetslark-baseTables, records, views, dashboardslark-taskTasks, subtasks, reminderslark-mailEmail (send, reply, search)lark-contactUser search by name/email/phonelark-wikiKnowledge spaces & nodeslark-eventWebSocket event subscriptionslark-vcMeeting records & minuteslark-whiteboardWhiteboard/chart DSLlark-minutesMeeting AI artifactslark-openapi-explorerAPI documentation explorerlark-skill-makerCustom skill frameworklark-approvalApproval tasks & workflowslark-workflow-meeting-summaryMeeting summary workflowlark-workflow-standup-reportStandup report workflow
lark-cli runs under your Feishu/Lark user identity. Keep these in mind:
LARK_APP_ID / LARK_APP_SECRET in public repos--dry-run for commands with side effects before executingVersion: 1.0.0 · Source: github.com/larksuite/cli · Updated: 2026-04-05