$npx -y skills add googleworkspace/cli --skill recipe-email-drive-linkShare a Google Drive file and email the link with a message to recipients.
| 1 | # Email a Google Drive File Link |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`, `gws-gmail` |
| 4 | |
| 5 | Share a Google Drive file and email the link with a message to recipients. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. Find the file: `gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'` |
| 10 | 2. Share the file: `gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'` |
| 11 | 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'` |