Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Lark / Feishu CLI

$ lark-cli Official Med Risk
Lark / Feishu (ByteDance) · Workspace & SaaS · MIT · macos / linux / windows

Lark 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.

FCRS-1.0 Score
93 /100
Excellent
High Confidence
Zero-Friction Install
npm install -g @larksuite/cli@latest
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

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 --json stdout envelope with non-zero exit codes
  • Ships 20+ official AI Agent Skills (official_skill)
Trust & Safety 21 / 25

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-type isolation
  • Includes lark-cli doctor health verification
Setup & Portability 15 / 15

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
Utility & Efficiency 14 / 15

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 api support
Maintenance & Lineage 10 / 10

Official larksuite/cli repository maintained by the Lark/Feishu team under MIT with 18.3k+ GitHub stars.

  • Official larksuite/cli repo (18.3k+ stars, MIT)
Docs & Verifiability 9 / 10

Comprehensive CLI help, modular skill guides, and clear onboarding via lark-cli config init.

  • Built-in skill documentation and --help coverage across 200+ commands

Security, Auth & Guardrails

Auth Modes
OAuth Browser Config File Service Account
Credential Storage

Stores app credentials and OAuth user tokens in ~/.lark-cli/ via lark-cli config init and lark-cli auth login.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

CLI is free (MIT); requires a Lark or Feishu workspace and Open Platform app permissions.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Check auth status and active identity
lark-cli auth status --json

Verifies active user/tenant tokens and granted OAuth scopes in structured JSON.

Run CLI and connectivity diagnostics
lark-cli doctor --json

Inspects local app configuration, network reachability, and token health.

Controlled Writes & Previews

Send a workspace message as configured identity
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 --json output envelopes and 20+ official SKILL.md modules.
  • + 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 init requires Lark Open Platform permission approval from a workspace admin.
  • ! Lacks a universal --dry-run flag on write shortcuts like im +send.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI