recipe-sync-contacts-to-sheet

Export Google Contacts directory to a Google Sheets spreadsheet.

By googleworkspace · 28,065 installs

npx skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet

Source repository · Upstream listing

Export Google Contacts to Sheets PREREQUISITE: Load the following skills to execute this recipe: gws people , gws sheets Export Google Contacts directory to a Google Sheets spreadsheet. Steps 1. List contacts: gws people people listDirectoryPeople params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY SOURCE TYPE DOMAIN PROFILE"], "pageSize": 100}' format json 2. Create a sheet: gws sheets +append spreadsheet SHEET ID range 'Contacts' values '["Name", "Email", "Phone"]' 3. Append each contact row: gws sheets +append spreadsheet SHEET ID range 'Contacts' values '["Jane Doe", "jane@company.com", "+1 555 0100"]'