# Recipe Sync Contacts To Sheet

Export Google Contacts directory to a Google Sheets spreadsheet.

- Repository: https://github.com/googleworkspace/cli (32044 stars)
- Category: Documents
- License: Apache-2.0
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet -g -a claude-code -y`
Codex: `npx skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet -g -a codex -y`
Cursor: `npx skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet -g -a cursor -y`
Gemini CLI: `npx skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet -g -a gemini-cli -y`

## Description

Export Google Contacts directory to a Google Sheets spreadsheet.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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"]'`


