A command-line interface for managing Attio from your terminal.
This exists to fill a gap in the current MCP workflow: the MCP can read Attio well, but it cannot perform object writes. This CLI fixes that by exposing Attio's API as shell commands you can use directly or automate in scripts.
Use it to:
- create, update, and inspect Attio objects, records, lists, and entries
- perform Attio write operations that are blocked through the MCP path
- script Attio workflows with raw JSON output
- manage Attio from the shell without hand-writing REST calls
bun install
bun run generate
bun run build
bun run testRun the built CLI directly:
bun run build
node dist/attio.js --help
node dist/attio.js objects listRun it without a build during development:
bun src/bin/attio.ts --help
bun src/bin/attio.ts objects listInstall the published package globally:
npm install -g clattio
attio --helpInstall it as a global command from this checkout:
bun link
attio --helpUse an API token:
attio auth token set
attio objects listOr use the built-in OAuth flow:
export ATTIO_CLIENT_ID=...
attio auth loginWhen ATTIO_CLIENT_SECRET is not set, the CLI prompts for it securely instead of accepting it on the command line.
On macOS, stored OAuth secrets and tokens use Keychain by default.
attio auth login can open the browser, handle the localhost callback, exchange the authorization code, and store the resulting token. It still requires an Attio OAuth app first.
Get the OAuth credentials from the Attio developer dashboard:
- Go to
https://build.attio.com - Create an app
- Open the app settings
- Find the OAuth settings
- Copy the
client_idandclient_secret - Register
http://127.0.0.1:8787/callbackas a redirect URI for the CLI callback
Relevant Attio docs:
https://docs.attio.com/docs/oauth/authorizehttps://docs.attio.com/docs/oauth/tokenhttps://docs.attio.com/rest-api/tutorials/connect-an-app-through-oauth