Loading...
Loading...
Compare original and translation side by side
wecom-cliwecom-cliwecom-cli --versionnpm install -g @wecom/cliwecom-cli --versionnpm install -g @wecom/cliwecom-cli auth show --auth-statusauthorizedunauthorizedwecom-cli auth show --auth-statusauthorizedunauthorizedwecom-cli init --noninteractive⚠️ 该命令会输出一个授权链接和二维码,并阻塞等待用户扫码完成验证。授权成功后命令会自动退出,仅需执行一次。
wecom-cli init --noninteractive⚠️ This command will output an authorization link and QR code, and block waiting for the user to scan the code to complete verification. The command will exit automatically after successful authorization, and only needs to be executed once.
wecom-cli contact get_userlist '{}'wecom-cli contact get_userlist '{}'wecom-cli msg get_msg_chat_list '{"begin_time": "2026-04-08 00:00:00", "end_time": "2026-04-15 23:59:59"}'wecom-cli msg get_msg_chat_list '{"begin_time": "2026-04-08 00:00:00", "end_time": "2026-04-15 23:59:59"}'wecom-cli msg send_message '{"chat_type": 1, "chatid": "zhangsan", "msgtype": "text", "text": {"content": "hello"}}'wecom-cli msg send_message '{"chat_type": 1, "chatid": "zhangsan", "msgtype": "text", "text": {"content": "hello"}}'wecom-cli doc create_doc '{"doc_type": 3, "doc_name": "项目周报"}'wecom-cli doc create_doc '{"doc_type": 3, "doc_name": "项目周报"}'wecom-cli doc get_doc_content '{"docid": "DOCID", "type": 2}'wecom-cli doc get_doc_content '{"docid": "DOCID", "type": 2}'⚠️ 特殊语法:此命令必须使用(带+smartpage_create前缀),加号不可省略;该+仅适用于此命令,不要泛化到其他+子命令。doc
wecom-cli doc +smartpage_create '{"title": "项目概览", "pages": [{"page_title": "需求文档", "content_type": 1, "page_filepath": "/path/to/requirements.md"}]}'⚠️ Special Syntax: This command must use(with+smartpage_createprefix), the plus sign cannot be omitted; this+only applies to this command, do not generalize to other+sub-commands.doc
wecom-cli doc +smartpage_create '{"title": "项目概览", "pages": [{"page_title": "需求文档", "content_type": 1, "page_filepath": "/path/to/requirements.md"}]}'wecom-cli doc smartpage_export_task '{"docid": "DOCID", "content_type": 1}'wecom-cli doc smartpage_export_task '{"docid": "DOCID", "content_type": 1}'wecom-cli schedule get_schedule_list_by_range '{"start_time": "2026-04-15 00:00:00", "end_time": "2026-04-15 23:59:59"}'wecom-cli schedule get_schedule_list_by_range '{"start_time": "2026-04-15 00:00:00", "end_time": "2026-04-15 23:59:59"}'wecom-cli meeting create_meeting '{"title": "周例会", "meeting_start_datetime": "2026-04-16 15:00", "meeting_duration": 3600}'wecom-cli meeting create_meeting '{"title": "周例会", "meeting_start_datetime": "2026-04-16 15:00", "meeting_duration": 3600}'wecom-cli todo get_todo_list '{}'wecom-cli todo get_todo_list '{}'wecom-cli todo create_todo '{"content": "完成Q2规划文档", "remind_time": "2026-04-20 09:00:00"}'wecom-cli todo create_todo '{"content": "完成Q2规划文档", "remind_time": "2026-04-20 09:00:00"}'