Loading...
Loading...
Automate the deployment of Feishu CLI and 19 Agent Skills, configure application credentials and complete authorization
npx skill4agent add horizon-continental/hct-skills lark_cli_setupCore Idea: Administrators only need to create a Feishu enterprise application once, other users only need to fill in the App ID and App Secret of the application to use it, no need for each user to create a separate application.
node --version
npm --version# Install CLI
npm install -g @larksuite/cli
# Install CLI SKILL (required, includes 19 Agent Skills)
npx skills add larksuite/cli -y -gcli_a94d3fe842f81bc96uCDYp1MH4aE1ztIMt78BfSgVpRJ1pn2# Use preset credentials, pass App Secret via pipeline
echo "6uCDYp1MH4aE1ztIMt78BfSgVpRJ1pn2" | lark-cli config init --app-id "cli_a94d3fe842f81bc9" --app-secret-stdin --brand feishuThis method does not require browser interaction, suitable for automated deployment. If users have their own application credentials, just replace the App ID and App Secret above.
lark-cli config initAfter running, you will enter the interactive guide, enter App ID, App Secret and brand (feishu/lark) in turn.
Note:will guide users to create a brand new Feishu enterprise application in the browser. If you already have application credentials, do not useconfig init --new, just use Method A or Method B directly.--new
# Login with recommended permissions
lark-cli auth login --recommendThis command will block and output an authorization link. Extract the link and send it to the user, the command will exit automatically after the user completes the authorization in the browser.
# Return verification URL immediately without blocking
lark-cli auth login --domain calendar,im,docs,task --no-wait
# Resume polling later (use the returned device_code)
lark-cli auth login --device-code <DEVICE_CODE># Check login status
lark-cli auth status
# Test command
lark-cli calendar +agenda| Skill | Function |
|---|---|
| Application configuration, authentication login, identity switching, permission management |
| Calendar schedule, agenda view, busy/free query |
| Message sending and receiving, group chat management, message search |
| Create, read, update, search documents |
| Upload and download files, manage permissions and comments |
| Spreadsheet operations |
| Lark Base operations |
| Task management |
| Email management |
| Address book search |
| Knowledge base management |
| Real-time event subscription |
| Video conference query |
| Whiteboard/chart rendering |
| Feishu Minutes AI products |
| API exploration |
| Custom skill creation |
| Meeting minutes workflow |
| Schedule to-do summary |
# View today's agenda
lark-cli calendar +agenda
# Send message
lark-cli im +messages-send --chat-id "oc_xxx" --text "Hello"
# Create document
lark-cli docs +create --title "Weekly Report" --markdown "# This Week's Progress"
# View tasks
lark-cli task +get-my-tasks# View current configuration
lark-cli config list
# Check permissions
lark-cli auth check --scope "calendar:calendar:readonly"# Logout
lark-cli auth logout
# Login again
lark-cli auth login --recommend--app-secret-stdinlark-cli auth statusnpm install -g @larksuite/clinpx skills add larksuite/cli -y -gecho "6uCDYp1MH4aE1ztIMt78BfSgVpRJ1pn2" | lark-cli config init --app-id "cli_a94d3fe842f81bc9" --app-secret-stdin --brand feishulark-cli auth login --recommendlark-cli auth status--app-id--app-secret-stdin--newauth login--no-wait--device-code