wecom-cli-enterprise-wechat

Manage Enterprise WeChat documents, messages, contacts, tasks, meetings, and calendars from the terminal.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill wecom-cli-enterprise-wechat-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wecom-cli-enterprise-wechat
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/wecom-cli-enterprise-wechat
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill wecom-cli-enterprise-wechat-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @wecom/cli.

What problem does it solve? Interacting with the Enterprise WeChat (WeCom) API normally requires writing custom HTTP integration code, making routine operations like sending messages, creating documents, or scheduling meetings slow and repetitive for developers and automation scripts. ## Core Features & Use Cases - Full WeCom API Coverage: Perform CRUD operations on documents, smart tables, messages, contacts, tasks, meetings, and calendar events via simple CLI commands with JSON parameters. - Automation-Friendly: Supports environment-variable credentials and composable shell commands, enabling batch scripts for meeting creation, task imports, and document generation. - Use Case: A team lead writes a cron script that pulls the department member list with wecom-cli contact get_userlist, then automatically schedules a daily standup meeting with all members as invitees every morning. ## Quick Start Install the CLI with npm, run wecom-cli init to enter your Bot ID and Secret, then ask the agent to send a text message to a WeCom user or create a new document.

Frequently Asked Questions about wecom-cli-enterprise-wechat

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

FAQPage Schema
How do I send a message through the Enterprise WeChat API from the terminal?▼

Use wecom-cli message send_text with a JSON payload containing the userid and text fields, for example wecom-cli message send_text '{"userid": "user1", "text": "Hello"}'. You must first run wecom-cli init to configure your Bot ID and Secret.

How to create and manage smart table records in WeCom using CLI?▼

Create a table with wecom-cli smartsheet create, add fields with smartsheet add_field, then use add_record, get_records, update_record, and delete_record for full record CRUD. Each command accepts a JSON object specifying the sheet_id and data.

What credentials does wecom-cli need for WeCom API access?▼

It requires a Bot ID and Bot Secret obtained from the WeCom Open Platform. Configure them interactively with wecom-cli init, or set the WECOM_BOT_ID and WECOM_BOT_SECRET environment variables for automation.

Does wecom-cli work on Windows and Linux?▼

Yes, wecom-cli supports macOS (x64/arm64), Linux (x64/arm64), and Windows (x64). It requires Node.js version 18 or higher and is installed globally via npm install -g @wecom/cli.

Why does wecom-cli return a permission denied error?▼

Permission denied errors occur when the bot lacks the required scopes in the WeCom admin console. Different capabilities such as documents, messages, and meetings each require separate permission grants for the bot.

How do I fix invalid JSON parameter errors in wecom-cli commands?▼

Wrap the JSON payload in single quotes so the shell does not interpret double quotes, for example wecom-cli task create '{"title": "My Task"}'. Validate complex JSON with jq before passing it to the command.