Tool v1.0.0

attio-cli

通过 attio-cli 与您的 Attio CRM 工作空间交互

ClawHub 更新于 2026-03-23 17 浏览
下载 SKILL

技能说明

通过 attio-cli 与您的 Attio CRM 工作空间交互

使用场景

Use attio-cli to interact with your Attio CRM workspace

查看英文原始说明

Interact with your Attio CRM workspace via the attio-cli.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/attio-cli
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 13 kB · zip 6.8 kB
手动下载 zip · 6.8 kB
SKILL.md text/markdown
# attio-cli

Interact with your Attio CRM workspace via the attio-cli.

## Install

1. Clone and install the CLI:
```bash
git clone https://github.com/FroeMic/attio-cli
cd attio-cli
npm install
npm link
```

2. Set `ATTIO_API_KEY` environment variable (get it from Attio Settings > Developers > API Keys):
   - **Recommended:** Add to `~/.claude/.env` for Claude Code
   - **Alternative:** Add to `~/.bashrc` or `~/.zshrc`: `export ATTIO_API_KEY="your-api-key"`

**Repository:** https://github.com/FroeMic/attio-cli

## Commands

List objects and records:
```bash
attio object list                      # List all objects
attio record list people               # List people records
attio record list companies            # List company records
```

Work with lists (pipelines):
```bash
attio list list-all                    # List all lists
attio entry list <list-slug>           # List entries in a list
```

Get detailed info:
```bash
attio object get <object-slug>         # Get object details
attio object attributes <object-slug>  # Get object attributes
attio list attributes <list-slug>      # Get list entry attributes
```

## Generate Workspace Schema

Generate a markdown schema of your workspace for context:
```bash
bash {baseDir}/scripts/generate-schema.sh > {baseDir}/workspace.schema.md
```

This creates a reference file documenting all objects, attributes, lists, and field options in your workspace.

## Key Concepts

| Concept | Purpose | Example |
|---------|---------|---------|
| **Objects** | Base record types | People, Companies, Deals |
| **Lists** | Pipeline/workflow management | Sales Pipeline, Hiring |
| **Records** | Individual items in objects | A specific person or company |
| **Entries** | Records added to a list | A deal in the Sales Pipeline |

## API Reference

- **Base URL:** `https://api.attio.com/v2`
- **Auth:** `Authorization: Bearer $ATTIO_API_KEY`
- **Rate Limits:** 100 requests per 10 seconds per workspace

## Common API Operations

Search for a person:
```bash
curl -X POST https://api.attio.com/v2/objects/people/records/query \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"email_addresses": {"contains": "john@example.com"}}}'
```

Create a record:
```bash
curl -X POST https://api.attio.com/v2/objects/<object-slug>/records \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"values": {"name": [{"value": "Record Name"}]}}}'
```

Add entry to a list:
```bash
curl -X POST https://api.attio.com/v2/lists/<list-slug>/entries \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"parent_record_id": "<record-id>"}}'
```

## Notes

- Run `generate-schema.sh` after installing to create a workspace schema file with all your objects, lists, and field options.
- Lists are commonly used to manage pipelines (sales stages, hiring workflows, etc.).
- The CLI requires `jq` for JSON processing in schema generation.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。