{"id":55,"date":"2026-03-21T22:47:15","date_gmt":"2026-03-21T14:47:15","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-directory\/"},"modified":"2026-03-21T23:08:54","modified_gmt":"2026-03-21T15:08:54","slug":"cli-directory","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-directory\/","title":{"rendered":"directory"},"content":{"rendered":"<h1>directory<\/h1>\n<h1><code>openclaw directory<\/code><\/h1>\n<p>\u5bf9\u652f\u6301\u76ee\u5f55\u529f\u80fd\u7684\u6e20\u9053\u8fdb\u884c\u67e5\u627e\uff08\u8054\u7cfb\u4eba\/\u5bf9\u7b49\u65b9\u3001\u7fa4\u7ec4\u548c&#8221;\u6211&#8221;\uff09\u3002<\/p>\n<h2>\u901a\u7528\u53c2\u6570<\/h2>\n<ul>\n<li><code>--channel &lt;name&gt;<\/code>\uff1a\u6e20\u9053 ID\/\u522b\u540d\uff08\u914d\u7f6e\u4e86\u591a\u4e2a\u6e20\u9053\u65f6\u4e3a\u5fc5\u586b\uff1b\u4ec5\u914d\u7f6e\u4e00\u4e2a\u6e20\u9053\u65f6\u81ea\u52a8\u9009\u62e9\uff09<\/li>\n<li><code>--account &lt;id&gt;<\/code>\uff1a\u8d26\u53f7 ID\uff08\u9ed8\u8ba4\uff1a\u6e20\u9053\u9ed8\u8ba4\u8d26\u53f7\uff09<\/li>\n<li><code>--json<\/code>\uff1a\u8f93\u51fa JSON \u683c\u5f0f<\/li>\n<\/ul>\n<h2>\u8bf4\u660e<\/h2>\n<ul>\n<li><code>directory<\/code> \u7528\u4e8e\u5e2e\u52a9\u4f60\u67e5\u627e\u53ef\u7c98\u8d34\u5230\u5176\u4ed6\u547d\u4ee4\u4e2d\u7684 ID\uff08\u7279\u522b\u662f <code>openclaw message send --target ...<\/code>\uff09\u3002<\/li>\n<li>\u5bf9\u4e8e\u8bb8\u591a\u6e20\u9053\uff0c\u7ed3\u679c\u6765\u6e90\u4e8e\u914d\u7f6e\uff08\u5141\u8bb8\u5217\u8868\/\u5df2\u914d\u7f6e\u7684\u7fa4\u7ec4\uff09\uff0c\u800c\u975e\u5b9e\u65f6\u7684\u63d0\u4f9b\u5546\u76ee\u5f55\u3002<\/li>\n<li>\u9ed8\u8ba4\u8f93\u51fa\u4e3a\u4ee5\u5236\u8868\u7b26\u5206\u9694\u7684 <code>id<\/code>\uff08\u6709\u65f6\u5305\u542b <code>name<\/code>\uff09\uff1b\u811a\u672c\u4e2d\u8bf7\u4f7f\u7528 <code>--json<\/code>\u3002<\/li>\n<\/ul>\n<h2>\u5c06\u7ed3\u679c\u7528\u4e8e <code>message send<\/code><\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw directory peers list &#8211;channel slack &#8211;query &#8220;U0&#8221;<br \/>\nopenclaw message send &#8211;channel slack &#8211;target user:U012ABCDEF &#8211;message &#8220;hello&#8221;<\/p>\n<pre><code>\n## ID \u683c\u5f0f\uff08\u6309\u6e20\u9053\uff09\n\n* WhatsApp\uff1a`+15551234567`\uff08\u79c1\u804a\uff09\uff0c`1234567890-1234567890@g.us`\uff08\u7fa4\u7ec4\uff09\n* Telegram\uff1a`@username` \u6216\u6570\u5b57\u804a\u5929 ID\uff1b\u7fa4\u7ec4\u4e3a\u6570\u5b57 ID\n* Slack\uff1a`user:U\u2026` \u548c `channel:C\u2026`\n* Discord\uff1a`user:&lt;id&gt;` \u548c `channel:&lt;id&gt;`\n* Matrix\uff08\u63d2\u4ef6\uff09\uff1a`user:@user:server`\u3001`room:!roomId:server` \u6216 `#alias:server`\n* Microsoft Teams\uff08\u63d2\u4ef6\uff09\uff1a`user:&lt;id&gt;` \u548c `conversation:&lt;id&gt;`\n* Zalo\uff08\u63d2\u4ef6\uff09\uff1a\u7528\u6237 ID\uff08Bot API\uff09\n* Zalo Personal \/ `zalouser`\uff08\u63d2\u4ef6\uff09\uff1a\u6765\u81ea `zca` \u7684\u4f1a\u8bdd ID\uff08\u79c1\u804a\/\u7fa4\u7ec4\uff09\uff08`me`\u3001`friend list`\u3001`group list`\uff09\n\n## Self\uff08&quot;\u6211&quot;\uff09\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw directory self --channel zalouser\n<\/code><\/pre>\n<h2>Peers\uff08\u8054\u7cfb\u4eba\/\u7528\u6237\uff09<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw directory peers list &#8211;channel zalouser<br \/>\nopenclaw directory peers list &#8211;channel zalouser &#8211;query &#8220;name&#8221;<br \/>\nopenclaw directory peers list &#8211;channel zalouser &#8211;limit 50<\/p>\n<pre><code>\n## \u7fa4\u7ec4\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw directory groups list --channel zalouser\nopenclaw directory groups list --channel zalouser --query &quot;work&quot;\nopenclaw directory groups members --channel zalouser --group-id &lt;id&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>directory openclaw directory \u5bf9\u652f\u6301\u76ee\u5f55\u529f\u80fd\u7684\u6e20\u9053\u8fdb\u884c\u67e5\u627e\uff08\u8054\u7cfb\u4eba\/\u5bf9\u7b49\u65b9\u3001\u7fa4\u7ec4\u548c [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":350,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/55\/revisions\/350"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}