Lark CLI — Complete Platform Toolkit
35+ AI agent skills for Lark — messenger, docs, base, sheets, calendar, approvals, and more
What You Can Do
The Lark CLI is the official command-line interface for Lark (飞书), packed with 35+ AI agent skills and 200+ commands. Automate workflows across your entire Lark workspace: manage approvals and attendance, develop custom applications with Miaoda, query and analyze multi-dimensional base tables, handle documents and sheets, schedule meetings, send messages, manage mail and tasks, and integrate with external APIs. Built for both humans and AI agents with comprehensive business domain coverage.
Features
Query, process, and track approval instances. Search approval definitions, initiate approvals, approve/reject/transfer/add-sign/rollback requests, and manage approval tasks and instances.
Build, manage, and deploy applications via Miaoda (Spark). Supports local and cloud-based development, environment variables, databases, file storage, observability (logs, traces, metrics), and application role/member management.
Create and manage data tables with fields, records, and views. Write formulas, lookup fields, perform data analysis, create forms and dashboards, manage workflows, and handle complex filtering and aggregation.
Work with Lark Docs, Sheets, Slides, and Wiki. Fetch, create, edit, and organize documents with support for collaborative features and version history.
Send and manage Messenger messages, schedule meetings, manage calendar events, handle mail, and coordinate tasks across your team.
Built-in support for OAuth, token management, scope handling, and multi-tenant authorization with clear error recovery and permission escalation workflows.
Bulk import and export data between Base and external systems. Support for CSV, NDJSON, and automated sync workflows with error handling and rollback capabilities.
Query API schemas and parameter structures before execution. Automatic field-level validation with clear error messages for invalid input.
Example Output
Check approval tasks waiting for your action
lark-cli approval tasks query --params '{"topic":"1"}' --as user
Returns a paginated list of pending approval instances assigned to you, including instance_code, task_id, form details, and current node information.
Create a new Miaoda application and deploy it
lark-cli apps +create --app-type full_stack --template hello --as user
Creates a new full-stack application with database support, returns the app_id, and provides the development environment URL. Subsequent +release-create and +release-get commands deploy it to production.
Query and analyze Base table data
lark-cli base +data-query --base-token <token> --table-id <id> --filter '{"conditions":[...]}' --as user
Returns matching records in NDJSON format for local analysis, supporting complex filtering, sorting, and aggregation across linked tables.
What's Included
- 35+ AI Agent Skills: Specialized skills for approval, apps, attendance, base, calendar, docs, drive, IM, mail, sheets, tasks, wiki, and more
- 200+ CLI Commands: Comprehensive command coverage across all Lark business domains with shortcut aliases for frequent operations
- Schema & Reference Documentation: Built-in `lark-cli schema` introspection and detailed reference guides for every command's parameters and response structure
- Error Handling & Recovery: Clear error messages with actionable hints, automatic retry guidance, and permission escalation workflows
- Multi-Environment Support: Dev/test/online environment isolation for applications, with separate configurations and observability per environment
- Git Integration: Tight integration with git for application source control, credential management, and automated deployment pipelines
Who It's For
- Lark Workspace Administrators
- Approval Process Managers
- Full-Stack Application Developers
- Data Analysts and Business Intelligence Teams
- Workflow Automation Engineers
Best For
- Automating approval workflows and compliance processes
- Building custom business applications on Lark platform
- Bulk data operations and analysis on Lark Base
- Integrating Lark with external systems and APIs
- Scripting and batch operations across Lark services