Lark-CLI: Official Lark/Feishu CLI for AI Agents

Lark-CLI: The Ultimate CLI Tool for Lark/Feishu Automation

Lark/Feishu users rejoice! The official lark-cli from the larksuite team has been open-sourced under MIT license, bringing 200+ commands and 20 AI Agent Skills to your terminal.

Why Choose lark-cli?

🎯 Agent-Native Design

  • 20 structured Skills ready for popular AI tools
  • Zero extra setup for AI agents
  • Concise parameters with smart defaults
  • Structured JSON output for maximum agent success rates

πŸ“Š Comprehensive Coverage

πŸ“… Calendar     πŸ’¬ Messenger    πŸ“„ Docs
πŸ“ Drive       πŸ“Š Base         πŸ“ˆ Sheets
βœ… Tasks       πŸ“š Wiki         πŸ‘€ Contact
πŸ“§ Mail        πŸŽ₯ Meetings     ✍️ Approval

πŸš€ 3-Minute Quick Start

# Install (npm recommended)
npm install -g @larksuite/cli
npx skills add larksuite/cli -y -g

# Configure & Login
lark-cli config init
lark-cli auth login --recommend

# First command
lark-cli calendar +agenda

πŸ› οΈ Three-Layer Architecture

1. Shortcuts (+ prefixed) - Human & AI friendly

lark-cli im +messages-send --chat-id "oc_xxx" --text "Hello"
lark-cli docs +create --title "Report" --markdown "# Progress"

2. API Commands - Platform synced

lark-cli calendar events instance_view --params '{...}'

3. Raw API - Full 2500+ endpoint coverage

lark-cli api POST /open-apis/im/v1/messages --body '{...}'

πŸ€– AI Agent Skills (20 Total)

Skill Domain
lark-calendar Events, agenda, free/busy
lark-im Messages, chats, media
lark-sheets Spreadsheet CRUD
lark-base Database operations
lark-mail Email automation
lark-approval Approval workflows

πŸ”’ Enterprise Security

  • Input injection protection
  • Terminal output sanitization
  • OS-native keychain storage
  • Identity switching (user/bot)
  • Dry-run previews

πŸ“ˆ Advanced Features

# Output formats
--format json | pretty | table | csv

# Pagination
--page-all | --page-limit 5

# Schema inspection
lark-cli schema im.messages.send

🎯 Perfect For

  • Developers: Automate Lark workflows
  • AI Builders: Agent-ready Skills
  • Admins: Bulk operations & reporting
  • Teams: Meeting automation & approvals

Star History: 6.4k ⭐ | 350 forks | MIT License

Get started today: npm install -g @larksuite/cli

⚠️ Security Note: Understand risks when authorizing AI agents. Use private bots only.

Original Article: View Original

Share this article