feishu-cli-msg

Send text, post, image, and interactive messages to Feishu users and chats via feishu-cli.

1.3k|140|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-msg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feishu-cli-msg
Source: https://github.com/riba2534/feishu-cli/tree/main/skills/feishu-cli-msg
Command: npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-msg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables programmatic sending of Feishu messages via feishu-cli, eliminating manual steps and enabling automation for notifications and alerts across users and chats.

Core Features & Use Cases

  • Supports multiple message types including text, post, image, file, audio, interactive, share_chat, share_user, and system messages.
  • Flexible input methods: quick text with --text, inline JSON with --content, or JSON file with --content-file.
  • Recipient versatility: target emails, open_id, user_id, union_id, or chat_id for one-to-one or group conversations.
  • Card messages and templates: craft rich interactive cards with Markdown content, action buttons, and multi-layout components to drive workflows.

Quick Start

Send a test message to a Feishu user or chat using feishu-cli to verify the setup.

Frequently Asked Questions about feishu-cli-msg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send automated messages to Feishu chats from a command line interface?

You can send automated Feishu messages from the CLI using feishu-cli, which supports targeting users or groups by email, open_id, user_id, union_id, or chat_id. It validates content before sending to ensure secure delivery.

Can I send interactive card messages with buttons and Markdown via the Feishu CLI?

Yes, interactive card messages are supported via the Feishu CLI. You can craft rich cards with Markdown content, action buttons, and multi-layout components to drive workflows by passing the JSON payload inline or from a file.

What permissions do I need to send bot messages to Feishu users?

To send bot messages to Feishu users, you need the feishu-cli environment configured with specific permissions: im:message, im:message:send_as_bot, im:chat:readonly, and im:readonly to function securely.

What message types can I send through the feishu-cli tool?

The feishu-cli tool supports sending multiple message types including text, post, image, file, audio, media, sticker, interactive, share_chat, share_user, and system messages across direct and group conversations.

How do I input complex JSON content when sending Feishu messages from the CLI?

For complex Feishu messages, you can input JSON content flexibly using the --content flag for inline JSON, the --content-file flag to read from a JSON file, or the --text flag for quick text messages.

What is the best way to automate Feishu notifications for alerts across multiple users?

Automating Feishu notifications is best handled by programmatically sending messages via feishu-cli, which eliminates manual steps and enables automated alerts across versatile recipient types like emails and chat IDs.