lark-cli
Original:🇺🇸 English
Translated
Operate Feishu/Lark via the lark CLI (IM, Drive, Docs, Sheets, Mail, Calendar, Wiki, Bitable, Tasks, and more).
11installs
Sourcerintays/lark-cli
Added on
NPX Install
npx skill4agent add rintays/lark-cli lark-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Lark CLI
This skill uses the CLI to operate Feishu/Lark products (IM, Drive, Docs, Sheets, Mail, Calendar, Wiki, Bitable, Tasks, and more), with the shortest-path examples and reference links.
larkWhat this repo provides
- CLI: a single binary to access Feishu/Lark products (IM, Drive, Docs, Sheets, Mail, Calendar, Wiki, Bitable, Tasks).
lark - Two output modes: human tables by default, JSON with for automation.
--json - SDK-first implementation via the official .
oapi-sdk-go
Quickstart (minimal)
- Install the CLI (see ).
references/INSTALL.md - Authenticate:
- Tenant token (app-only, bot/app identity):
lark auth tenant - User token (user-scoped, on behalf of a user): See
lark auth user loginfor details and scopes.references/AUTH.md
- Tenant token (app-only, bot/app identity):
- Run a command:
bash
lark whoami
lark chats list --limit 10
lark users search "Ada" --jsonCore concepts (tl;dr)
- Feishu = Lark (global brand). Same API surface, different API endpoints.
- Most commands follow: .
lark <product> <action> [args] [flags] - Required IDs are positional args (no required flags).
--id - Many commands accept a Lark/Feishu web URL in place of IDs.
- prints machine-readable output to stdout; logs/errors go to stderr.
--json
See for a longer primer.
references/CONCEPTS.mdWhen to use tenant vs user tokens
- Tenant token: app-level operations as your bot/app identity.
- User token: user-scoped operations on behalf of a specific user.
If a command fails with scope errors, check .
references/TROUBLESHOOTING.mdToken Type Usage
Use to force the access token type:
--token-type- : default, auto-select based on command needs.
--token-type auto - : force tenant token.
--token-type tenant - : force user token.
--token-type user
Examples:
bash
lark whoami --token-type tenant
lark drive list --token-type userAgent-friendly workflow
- Prefer and parse in tools/scripts.
--json - Use /
--limitfor pagination-heavy commands.--pages - Reuse or
--accountfor multi-user scenarios.LARK_ACCOUNT
Common recipes
See for common tasks (send message, search users, read docs, etc.).
references/RECIPES.mdDeep references
- Install:
references/INSTALL.md - Auth & scopes:
references/AUTH.md - Concepts & IDs:
references/CONCEPTS.md - Recipes:
references/RECIPES.md - Troubleshooting:
references/TROUBLESHOOTING.md - Completion:
references/COMPLETION.md - Docs:
references/DOCS.md - Sheets:
references/SHEETS.md - Bitable bases:
references/BASES.md - Drive:
references/DRIVE.md - Minutes:
references/MINUTES.md - Calendars:
references/CALENDARS.md - Meetings:
references/MEETINGS.md - Chats:
references/CHATS.md - Messages:
references/MESSAGES.md - Contacts:
references/CONTACTS.md - Mail:
references/MAIL.md - Tasklists:
references/TASKLISTS.md - Tasks:
references/TASKS.md - Users:
references/USERS.md - Config:
references/CONFIG.md - Whoami:
references/WHOAMI.md - Wiki:
references/WIKI.md