返回顶部
C

ClayClay CLI

Search, manage, and organize your contact network via the Clay CLI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
226
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

Clay

Clay

使用 clay 从命令行搜索、创建、更新和管理您的个人联系人网络。

系统要求

  • - 一个 Clay 账户 (clay.earth)
  • 使用任何命令前需进行身份验证:clay login

身份验证

登录(在浏览器中打开 OAuth 授权页面):

bash
clay login

检查身份验证状态:

bash
clay status

退出登录:

bash
clay logout

凭据存储在 ~/.config/clay.json 中。

输出格式

所有数据命令均支持 --format 参数来控制输出格式:

  • - json(默认)— 格式化打印的 JSON
  • csv — 逗号分隔值
  • tsv — 制表符分隔值

bash
clay contacts:search --name Alice --format csv
clay emails:recent --format tsv

联系人

通过 ID 获取联系人:

bash
clay contact --contact-id 12345

搜索联系人:

bash
clay contacts:search --name Jane Smith
clay contacts:search --work-history-company Acme --work-history-active true
clay contacts:search --education-history-school MIT
clay contacts:search --location-latitude 37.7749 --location-longitude -122.4194 --location-distance 50
clay contacts:search --last-email-date-gte 2025-01-01 --sort-field lastemaildate --sort-direction desc
clay contacts:search --group-ids starred --limit 10
clay contacts:search --keywords investor --include-fields name,email,title

创建联系人:

bash
clay contacts:create --first-name Jane --last-name Doe --email jane@example.com
clay contacts:create --first-name Bob --title CEO --organization Acme Inc --birthday 1990-05-15

更新联系人:

bash
clay contacts:update --contact-id 12345 --title CTO --organization NewCo
clay contacts:update --contact-id 12345 --email new@example.com --phone +1234567890

归档/恢复联系人:

bash
clay contacts:archive --contact-ids 12345
clay contacts:restore --contact-ids 12345

合并重复联系人:

bash
clay contacts:merge --contact-ids 12345 --contact-ids 67890

备注

列出指定日期范围内的备注:

bash
clay notes --start 2025-01-01 --end 2025-12-31
clay notes --contact-ids 12345

在联系人上创建备注:

bash
clay notes:create --contact-id 12345 --content 在会议上认识,对合作非常感兴趣。
clay notes:create --contact-id 12345 --content 下周跟进 --reminder-date 2026-03-01T09:00:00Z

备注内容支持联系人引用:[contact:123:John Doe]。

分组

列出所有分组:

bash
clay groups
clay groups --limit 50

创建分组:

bash
clay groups:create --title 投资者

更新分组(重命名、添加/移除成员):

bash
clay groups:update --group-id 42 --title 天使投资人
clay groups:update --group-id 42 --add-contact-ids 12345 --add-contact-ids 67890
clay groups:update --group-id 42 --remove-contact-ids 11111

活动

列出指定日期范围内的活动:

bash
clay events --start 2025-01-01 --end 2025-03-01
clay events --contact-ids 12345

列出即将到来的活动:

bash
clay events:upcoming
clay events:upcoming --limit 20 --page 2

邮件

列出指定日期范围内的邮件:

bash
clay emails --start 2025-01-01 --end 2025-02-01
clay emails --contact-ids 12345

列出最近的邮件:

bash
clay emails:recent
clay emails:recent --limit 25 --contact-ids 12345

提醒

列出最近的提醒:

bash
clay reminders:recent
clay reminders:recent --limit 5

列出即将到来的提醒:

bash
clay reminders:upcoming
clay reminders:upcoming --limit 20 --page 2

搜索选项参考

contacts:search 命令支持以下筛选条件:

  • - 姓名:--name
  • 工作:--work-history-company、--work-history-position、--work-history-active
  • 教育:--education-history-school、--education-history-degree、--education-history-active
  • 位置:--location-latitude、--location-longitude、--location-distance
  • 年龄:--age-gte、--age-lte
  • 生日:--upcoming-birthday-gte/lte、--previous-birthday-gte/lte
  • 联系信息:--information-type(按可用信息类型筛选)
  • 互动日期:--first-email-date-gte/lte、--last-email-date-gte/lte、--first-event-date-gte/lte、--last-event-date-gte/lte、--first-text-message-date-gte/lte、--last-text-message-date-gte/lte、--first-interaction-date-gte/lte、--last-interaction-date-gte/lte
  • 互动次数:--email-count-gte/lte、--event-count-gte/lte、--text-message-count-gte/lte
  • 备注:--note-content、--note-date-gte/lte
  • 分组:--group-ids(分组 ID 或 starred)
  • 集成:--integration
  • 排序:--sort-field、--sort-direction
  • 分页:--limit、--exclude-contact-ids
  • 字段:--include-fields(选择要返回的字段)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clay-1775927236 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clay-1775927236 技能

通过命令行安装

skillhub install clay-1775927236

下载

⬇ 下载 Clay v1.0.0(免费)

文件大小: 2.36 KB | 发布时间: 2026-4-12 09:28

v1.0.0 最新 2026-4-12 09:28
Initial release of the Clay CLI skill.

- Search, create, update, and organize contacts from the command line.
- Manage notes, groups, events, emails, and reminders associated with your contacts.
- Supports advanced search filters and output formats (json, csv, tsv).
- Requires a Clay account and authentication via `clay login`.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部