Lark / Feishu CLI
$ lark-cli Official Med RiskLark CLI (lark-cli) is ByteDance's official Go CLI for Lark and Feishu workspaces. Covering Messenger, Docs, Sheets, Slides, Wiki, Calendar, Base, Mail, Tasks, Attendance, Approval, and OKRs across 200+ commands, it provides structured --json output, --token-type switching between user OAuth (lark-cli auth login) and bot/app tokens (lark-cli config init), plus dozens of bundled AI Agent Skills.
npm install -g @larksuite/cli@latest lark-cli ships 200+ commands with standardized --json envelopes and modular SKILL.md definitions, avoiding MCP context bloat across Lark's 12+ workspace domains.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for AI agents with consistent --json envelopes (ok, identity, data, meta), stderr error separation, pagination flags (--limit, --pages), and 20+ bundled SKILL.md skills.
- Standardized
--jsonstdout envelope with non-zero exit codes - Ships 20+ official AI Agent Skills (
official_skill)
Separates --token-type user OAuth (lark-cli auth login) from app/bot credentials (lark-cli config init) and exposes lark-cli auth status and lark-cli doctor.
- Explicit OAuth scope enforcement and
--token-typeisolation - Includes
lark-cli doctorhealth verification
Cross-platform Go binary easily installed via npm install -g @larksuite/cli@latest, npx @larksuite/cli@latest install, or GitHub releases across macOS, Linux, and Windows.
- Available via
npm,npx, and prebuilt Go binaries
Covers 200+ commands across Messenger, Docs, Sheets, Slides, Wiki, Calendar, Base, Mail, Tasks, Attendance, Approval, and OKRs plus raw lark-cli api escape hatches.
- 200+ domain commands plus raw
lark-cli apisupport
Official larksuite/cli repository maintained by the Lark/Feishu team under MIT with 18.3k+ GitHub stars.
- Official
larksuite/clirepo (18.3k+ stars, MIT)
Comprehensive CLI help, modular skill guides, and clear onboarding via lark-cli config init.
- Built-in skill documentation and
--helpcoverage across 200+ commands
Security, Auth & Guardrails
Stores app credentials and OAuth user tokens in ~/.lark-cli/ via lark-cli config init and lark-cli auth login.
CLI is free (MIT); requires a Lark or Feishu workspace and Open Platform app permissions.
# Lark CLI Agent Rules - Run `lark-cli auth status --json` before workspace queries to confirm user vs. tenant token mode. - Always pass `--json` and bound listings with `--limit` or `--pages`. - Require explicit user confirmation before sending external messages (`im +send`), emails, or approvals.
Agent-Ready Command Recipes
Safe Read-Only Queries
lark-cli auth status --json
Verifies active user/tenant tokens and granted OAuth scopes in structured JSON.
lark-cli doctor --json
Inspects local app configuration, network reachability, and token health.
Controlled Writes & Previews
lark-cli im +send --chat-id oc_example --text "Build completed" --json
Sends a structured IM message and returns the JSON delivery envelope.
Strengths for Agents
- + Designed explicitly for AI agents with
--jsonoutput envelopes and 20+ officialSKILL.mdmodules. - + Clean separation between user OAuth (
lark-cli auth login) and app/bot mode (lark-cli config init). - + Breadth of 200+ commands across 12+ Lark/Feishu business domains plus
lark-cli api.
Caveats & Pitfalls
- ! Initial app setup via
lark-cli config initrequires Lark Open Platform permission approval from a workspace admin. - ! Lacks a universal
--dry-runflag on write shortcuts likeim +send.