Recipe Email Drive Link

by googleworkspacea3768d0e82adNo license31K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated yesterday

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

AI-generated overview

Shares a Google Drive file with a recipient and emails them the link using gws commands.

What it does
This recipe walks through sharing a Google Drive file and sending its link by email. It uses the gws CLI to locate the file by name, create a reader permission for a recipient's email address, and send a Gmail message containing the document link. The deliverable is a shared file plus a sent email notification.
When to use it
Use it when a Drive file needs to be shared with someone and the link sent to them by email. It suits simple one-off sharing and notification tasks rather than bulk or permission-heavy workflows.
Requirements
Requires the gws CLI with the gws-drive and gws-gmail skills loaded, plus authenticated access to Google Drive and Gmail. It ships no scripts; it is instructions only.

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": "[email protected]"}'
  3. Email the link: gws gmail +send --to [email protected] --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'

Source and attribution

Source:googleworkspace/cliinskills/recipe-email-drive-linkat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal