googleworkspace avatar

Recipe Email Drive Link

A straightforward workflow for sharing Google Drive files via email without the usual copy-paste dance. It searches for your file by name, sets the sharing permissions for specific recipients, then fires off an email with the shareable link embedded in your message. Perfect for client deliverables, team collaboration, or any scenario where you're regularly sharing documents with external users. The recipe handles the tedious permission management automatically, though you'll want to customize the email templates for your specific use case. Saves you from juggling between Drive and Gmail tabs, especially when you're doing bulk file sharing.

skills.sh installs
32.1K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-email-drive-link --agent claude-code

Installs into .claude/skills of the current project.

Files

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'

Sponsors

Details

Repository
github.com/googleworkspace/cli
Category
CLI & Terminal

More from googleworkspace/cli

All 113
1googleworkspace avatargws-eventsgoogleworkspace/cliSubscribe to Google Workspace events.32.1Kskills.sh installs
2googleworkspace avatarpersona-researchergoogleworkspace/cliOrganize research — manage references, notes, and collaboration.32Kskills.sh installs
3googleworkspace avatarrecipe-create-gmail-filtergoogleworkspace/cliCreate a Gmail filter to automatically label, star, or categorize incoming messages.32Kskills.sh installs
4googleworkspace avatarrecipe-save-email-attachmentsgoogleworkspace/cliFind Gmail messages with attachments and save them to a Google Drive folder.31.8Kskills.sh installs
5googleworkspace avatarrecipe-backup-sheet-as-csvgoogleworkspace/cliExport a Google Sheets spreadsheet as a CSV file for local backup or processing.31.7Kskills.sh installs
6googleworkspace avatarrecipe-organize-drive-foldergoogleworkspace/cliCreate a Google Drive folder structure and move files into the right locations.31.7Kskills.sh installs