attio-cli
Skill0 starsChanged 8 months agoCC0-1.0View on GitHub
Use when interacting with Attio CRM (attio.com) via the `attio` CLI — managing people, companies, deals, custom records, list entries, notes, tasks, comments, meetings, recordings, webhooks, attributes, or workspace members. Triggers include "attio", "Attio CRM", "find this contact in CRM", "add to a list", "log a call note", "create a follow-up task", "sync contacts to CRM".
- Reads credentials
- Installs packages
In this repository11 other files it gives its agents.
- close-crmSkill
- context7Skill
- doc-reviewSkill
- gpt-image-1-5Skill
- imagemagickSkill
- markdown-converterSkill
- nano-banana-2Skill
- nano-banana-proSkill
- notion-apiSkill
- tavilySkill
- todoist-apiSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Verify the CLI is installed and authenticated before doing anything:
- Very specific: line 20
No API key: ask the user to run attio init (interactive wizard), or attio config set api-key <key>.
- Distinctive: line 97
Create a company by domain (idempotent):
- Very specific: line 105
Create a person with multiple emails — needs --values:
- Very specific: line 129
Update — clear a field by setting it to null in --values:
- Very specific: line 249
Read-only. Meetings use cursor pagination — --all handles it for you.
- Very specific: line 284
Default human output is a table.
- Distinctive: line 287
All errors go to stderr; stdout stays clean for piping.
- Very specific: line 292
Writing without inspecting attributes first: Every workspace has custom fields.
- Very specific: line 296
Tasks need workspace member IDs, not emails: Look them up with attio members list.
- Very specific: line 298
No
notes updatecommand: Delete + recreate, or call the API directly. - Very specific: line 326
Run attio <cmd> --help to confirm flags for the version installed (the CLI evolves.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Attio CLI
Reference for the attio CLI (attio-cli), a typed wrapper over the Attio v2 REST API. Optimized for scripts and agents — JSON-by-default when piped, predictable exit codes, no interactive prompts on the read path.
Prerequisites
Verify the CLI is installed and authenticated before doing anything:
attio whoami # prints workspace + token infoIf whoami fails:
- Not installed:
npm install -g attio-cli(or whatever the user uses). - No API key: ask the user to run
attio init(interactive wizard), orattio config set api-key <key>. The CLI also reads$ATTIO_API_KEY.
Mental model (read this first)
Attio's data model:
- Objects — schemas. Default:
people,companies. Optional:deals,users,workspaces. Custom objects allowed. - Records — instances of an object (one person, one company, one deal). Identified by
record_id(UUID). - Attributes — fields on an object. Have a
slug(human, stable, e.g.email_addresses) and atype(text,email-address,personal-name,domain,currency,status,select,record-reference,actor-reference, etc.). Many attributes are multiselect (e.g. emails, phone numbers). - Lists — workflow collections that contain entries referencing parent records. Lists have their own attributes on top of object attributes.
- Notes / tasks / comments / meetings — content attached to records.
- Workspace members — humans with access.
members listto get IDs/emails for task assignment.
Slugs vs IDs: anywhere you see <object>, you can pass either the API slug (people) or the object UUID. Same for <list>. Prefer slugs for readability.
Global flags (every command)
| Flag | Purpose |
--json / --table / --csv | Force output format. Default: table for TTY, JSON when piped. |
-q / --quiet | Print IDs only, one per line. Use when chaining (ID=$(attio ... -q)). |
--api-key <k> | Override $ATTIO_API_KEY for this call. |
--debug | Print HTTP request/response to stderr. Use when something is failing inexplicably. |
--no-color | Disable ANSI colors. |
For destructive commands (delete), pass -y / --yes to skip the interactive confirmation — required in non-interactive contexts (scripts, agent runs).
Discovery commands
attio whoami # workspace + scopes
attio objects list # all objects (slugs + IDs)
attio objects get <slug> # one object
attio attributes list <object> # attribute slugs and types — read this before crafting --set/--values
attio lists list # all lists in the workspace
attio lists get <list> # one list
attio members list # workspace members (need IDs/emails for tasks)
attio webhooks events # all subscribable webhook event typesAlways run attio attributes list <object> before writing to a new object — that's where you discover attribute slugs, types, whether they're multiselect, and which ones are is_required or is_unique.
Records (CRUD across any object)
attio records list <object> [--filter EXPR ...] [--sort EXPR ...] [--limit N] [--offset N] [--all]
attio records get <object> <record-id>
attio records create <object> [--set k=v ...] [--values JSON|@file]
attio records update <object> <record-id> [--set k=v ...] [--values JSON|@file]
attio records assert <object> --match <attr-slug> [--set k=v ...] [--values JSON|@file] # upsert
attio records upsert <object> ... # alias of assert
attio records delete <object> <record-id> -y
attio records search <query> [--object <slug> ...] [--limit N] # cross-object full-text
attio records values <object> <record-id> [--attribute <slug>] [--no-historic] [--all] # current + historic values
attio records entries <object> <record-id> [--all] # which lists this record is inShortcuts (identical behavior):
attio people list|get|create|update|delete|assert|search ...
attio companies list|get|create|update|delete|assert|search ...
attio deals list|get|create|update|delete|assert|search ...
attio users ...
attio workspaces ...--set vs --values
--set key=value— repeatable, simplest path for flat scalars. Good for ad-hoc updates.--values '<json>'— full Attio API value structure. Use when fields are complex (multi-value, nested objects, status references).--values @path/to/file.json— load JSON from a file. Use for bulk or large payloads.- Stdin: pipe JSON to
--values @-(or just to the command if supported).
The CLI translates --set name="Acme" into the appropriate {"name":[{"value":"Acme"}]} shape. For attributes the CLI can't trivially infer (status, multi-value, nested), pass --values.
Worked examples
Create a company by domain (idempotent):
attio companies assert --match domains \
--set name="Acme Corp" \
--set domains="acme.com"Create a person with multiple emails — needs --values:
attio people create --values '{
"name": [{"first_name":"John","last_name":"Doe"}],
"email_addresses": [
{"email_address":"john@acme.com"},
{"email_address":"j.doe@personal.com"}
],
"job_title": [{"value":"VP Eng"}]
}'Get the record ID and chain it:
PERSON=$(attio people assert --match email_addresses \
--set email_addresses="john@acme.com" \
--set name="John Doe" -q)
attio notes create --object people --record "$PERSON" \
--title "Intro call" --format markdown \
--content "## Discussion\n- Currently using X\n- Pain: Y"Update — clear a field by setting it to null in --values:
attio companies update <id> --values '{"phone_numbers": null}'Filters
Two ways to filter records list and entries list:
1. Shorthand --filter (repeatable, ANDed)
| Operator | Meaning | Example |
= | equals | name=Acme |
!= | not equals | stage!=Lost |
~ | contains (case-insensitive) | name~Acme |
!~ | not contains | description!~spam |
^ | starts with | name^Acme |
> >= < <= | numeric/date comparisons | revenue>=1000000 |
? | is set / not empty | name? (see caveat) |
Multiple --filter flags AND together. For OR or nested logic, drop to --filter-json.
Caveats verified against the live API:
?only works on attribute types whose sub-field accepts$not_empty. It works onname(personal-name) but the API rejects it ondescription(text → sub-fieldvalue) andemail_addresses(email-address → sub-fieldemail_address). Substitute~or^for those.- Timestamps need a full ISO-8601 with time:
created_at>2024-01-01T00:00:00Zworks, barecreated_at>2024-01-01returns "Invalid timestamp value". Date-typed attributes (e.g.,close_date) DO acceptYYYY-MM-DD.
2. Raw --filter-json (full power)
attio records list people --filter-json '{
"$or": [
{"email_addresses": {"email_address": {"$contains": "@acme.com"}}},
{"job_title": {"$contains": "VP"}}
]
}'Operators: $eq, $not_empty, $in, $contains, $starts_with, $ends_with, $lt, $lte, $gt, $gte, $and, $or, $not. See references/filter-syntax.md for a fuller cookbook.
Sorting & pagination
--sort name:asc # repeatable
--sort created_at:desc
--limit 100 --offset 0 # default page is 25
--all # auto-paginate (records, entries, values, recordings)Lists & entries
attio lists list
attio lists get <list>
attio entries list <list> [--filter EXPR] [--sort EXPR] [--limit N] [--all]
attio entries get <list> <entry-id>
attio entries create <list> --record <record-id> --object <parent-obj> [--set k=v]
attio entries assert <list> --record <record-id> --object <parent-obj> [--set k=v] # idempotent add
attio entries update <list> <entry-id> [--set k=v]
attio entries delete <list> <entry-id> -yNotes:
entries create/assertrequires both--record(the parent record's ID) and--object(its object slug).- Entries can have list-specific attributes (e.g.,
stage,priority) on top of the parent record's attributes. entries update(PATCH) appends multi-select values; use--valueswith full arrays to overwrite.- Deleting an entry removes the record from the list — it does NOT delete the parent record.
Notes
attio notes list [--object <obj> --record <id>] [--limit N]
attio notes get <note-id>
attio notes create --object <obj> --record <id> --title "..." --content "..." [--format plaintext|markdown]
attio notes delete <note-id> -yMarkdown supports headings (h1–h3), lists, bold/italic/strikethrough/highlight, links. \n in content for newlines. The CLI does not have notes update — to edit, delete and recreate (or use the API directly).
Tasks
attio tasks list [--assignee <member-id>] [--is-completed] [--linked-object <obj>] [--linked-record-id <id>] [--limit N] [--sort EXPR]
attio tasks get <task-id>
attio tasks create --content "..." [--assignee <member-id>] [--deadline <ISO-date>] [--record <object>:<record-id>]
attio tasks update <task-id> [--complete] [--incomplete] [--deadline <ISO-date>] [--content "..."]
attio tasks delete <task-id> -y--recorduses the colon syntax:--record people:abc-123-.... Repeatable to link multiple records.--assigneetakes a workspace member ID (UUID) — get it fromattio members list.--deadlineis ISO-8601 (2026-12-31T23:59:59Zor2026-12-31).
Comments & threads
attio comments list --object <obj> --record <id> # threads on a record
attio comments create --object <obj> --record <id> --content "..." [--thread <thread-id>]
attio comments delete <comment-id> -y
attio threads list [--object <obj> --record <id>] [--list <list> --entry <entry-id>]
attio threads get <thread-id>Pass --thread to reply to an existing thread; omit to start a new one.
Meetings & recordings (Beta API)
attio meetings list [--linked-object <obj>] [--linked-record-id <id>] [--participants a@x.com,b@y.com] \
[--starts-before ISO] [--ends-from ISO] [--sort start_asc|start_desc] [--all]
attio meetings get <meeting-id>
attio recordings list --meeting <meeting-id> [--all]
attio recordings get <recording-id> --meeting <meeting-id> [--transcript] [--all-transcript]Read-only. Meetings use cursor pagination — --all handles it for you.
Webhooks
attio webhooks events # discover all event types
attio webhooks list
attio webhooks get <id>
attio webhooks create --target-url https://... --event record.created --event record.updated [--filter-json '...']
attio webhooks update <id> [--target-url ...] [--event ...] [--subscriptions @file.json]
attio webhooks delete <id> -y--filter-json is applied to ALL --event subscriptions on this webhook. For per-event filters, build the full subscriptions array and pass it as --subscriptions @file.json.
Web app links
attio open <object> # opens the object's page
attio open <object> <record-id> # opens a specific recordUseful when the user wants a clickable link rather than JSON.
Configuration
attio config get api-key # current key (masked)
attio config set api-key <key> # persists to config file
attio config path # where the config file lives
attio config claude-md # prints a CLAUDE.md snippet for AI agent discoveryOutput, exit codes, errors
- Default human output is a table; piping switches to JSON. Force with
--json. - Exit codes:
0success,1general error,2invalid args,3auth error,4rate limited,5not found. - Rate limits: 100 reads/sec, 25 writes/sec. The CLI surfaces 429 errors; back off and retry.
- All errors go to stderr; stdout stays clean for piping.
- For obscure failures, re-run with
--debugto see the request/response.
Common pitfalls
- Writing without inspecting attributes first. Every workspace has custom fields.
attio attributes list <object>is cheap and prevents 400s. --setfor complex values. Status, multi-value, references — use--valuesJSON.- PATCH appends multiselects.
entries updateand similar PATCH semantics extend lists; pass--valueswith the full intended array to overwrite. - Confusing
assert --matchwithupdate.assertupserts on a unique attribute (e.g.email_addresses,domains).updaterequires you already know the record ID. - Tasks need workspace member IDs, not emails. Look them up with
attio members list. opendoes NOT show data — it just launches the browser. Usegetfor data.- No
notes updatecommand. Delete + recreate, or call the API directly. - Lists are not records. Adding to a list = creating an entry in
entries, with the record's ID as--record.
Chaining patterns for agents
# Resolve a person by email, then attach a note
PERSON=$(attio people assert --match email_addresses \
--set email_addresses="$EMAIL" \
--set name="$NAME" -q)
attio notes create --object people --record "$PERSON" \
--title "$TITLE" --content "$BODY" --format markdown
# Find all open deals over $50k assigned to me, sorted by close date
ME=$(attio members list --json | jq -r '.[] | select(.email_address=="kirill@zerobooks.ca") | .id.workspace_member_id')
attio records list deals \
--filter "stage!=Lost" --filter "value>=50000" \
--sort close_date:asc --jsonFor long-running batch jobs (1000+ records), prefer --all over manual offset paging — the CLI already throttles to stay under rate limits.
See also
references/filter-syntax.md— full operator reference and filter cookbookreferences/attribute-types.md— JSON shape for each attribute type when using--valuesreferences/api-endpoints.md— direct REST mapping for advanced cases- Run
attio <cmd> --helpto confirm flags for the version installed (the CLI evolves; help is authoritative).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

