@clayhq/clay-cli
v1.0.4
Published
Command-line interface (CLI) tool for Clay.
Downloads
53
Readme
@clayhq/clay-cli
Command-line interface for Clay — your personal CRM.
Installation
npm install -g @clayhq/clay-cliOr run directly with npx:
npx @clayhq/clay-cli <command>Authentication
Log in with your Clay account:
clay loginThis opens your browser to authorize the CLI. Once authenticated, your credentials are stored locally at ~/.config/clay.json.
clay status # Check login status
clay logout # Remove stored credentialsCommands
Contacts
clay contacts:search --name "Jane Doe"
clay contacts:search --keywords "designer" --work-history-company "Google"
clay contact --contact-id 123
clay contacts:create --first-name "Jane" --last-name "Doe" --email "[email protected]"
clay contacts:update --contact-id 123 --title "Senior Designer"
clay contacts:archive --contact-ids 123
clay contacts:restore --contact-ids 123
clay contacts:merge --contact-ids 123,456Notes
clay notes:create --contact-id 123 --content "Met at the conference"
clay notes --start 2025-01-01 --end 2025-12-31Groups
clay groups
clay groups:create --title "Investors"
clay groups:update --group-id 5 --add-contact-ids 123,456Events & Emails
clay events --start 2025-01-01 --end 2025-01-31
clay events:upcoming
clay emails --start 2025-01-01 --end 2025-01-31
clay emails:recentReminders
clay reminders:recent
clay reminders:upcomingOutput Formats
All commands default to JSON. Use --format to change:
clay contacts:search --name "Jane" --format json # default
clay contacts:search --name "Jane" --format csv
clay contacts:search --name "Jane" --format tsvRequirements
- Node.js 18+
- A Clay account
License
Copyright Clay
