Cli recipe-sync-contacts-to-sheet
Export Google Contacts directory to a Google Sheets spreadsheet.
install
source · Clone the upstream repo
git clone https://github.com/googleworkspace/cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/googleworkspace/cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/recipe-sync-contacts-to-sheet" ~/.claude/skills/googleworkspace-cli-recipe-sync-contacts-to-sheet && rm -rf "$T"
manifest:
skills/recipe-sync-contacts-to-sheet/SKILL.mdsource content
Export Google Contacts to Sheets
PREREQUISITE: Load the following skills to execute this recipe:
,gws-peoplegws-sheets
Export Google Contacts directory to a Google Sheets spreadsheet.
Steps
- List contacts:
gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json - Create a sheet:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]' - Append each contact row:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'