# Recipe Email Drive Link

Share a Google Drive file and email the link with a message to recipients.

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

## Install

Claude Code: `npx skills add googleworkspace/cli --skill recipe-email-drive-link -g -a claude-code -y`
Codex: `npx skills add googleworkspace/cli --skill recipe-email-drive-link -g -a codex -y`
Cursor: `npx skills add googleworkspace/cli --skill recipe-email-drive-link -g -a cursor -y`
Gemini CLI: `npx skills add googleworkspace/cli --skill recipe-email-drive-link -g -a gemini-cli -y`

## Description

Share a Google Drive file and email the link with a message to recipients.

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

# Email a Google Drive File Link

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`, `gws-gmail`

Share a Google Drive file and email the link with a message to recipients.

## Steps

1. Find the file: `gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'`
2. Share the file: `gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'`
3. Email the link: `gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'`


