Cli recipe-create-shared-drive

Create a Google Shared Drive and add members with appropriate roles.

install
source · Clone the upstream repo
git clone https://github.com/googleworkspace/cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/googleworkspace/cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/recipe-create-shared-drive" ~/.claude/skills/googleworkspace-cli-recipe-create-shared-drive && rm -rf "$T"
manifest: skills/recipe-create-shared-drive/SKILL.md
source content

Create and Configure a Shared Drive

PREREQUISITE: Load the following skills to execute this recipe:

gws-drive

Create a Google Shared Drive and add members with appropriate roles.

Steps

  1. Create shared drive:
    gws drive drives create --params '{"requestId": "unique-id-123"}' --json '{"name": "Project X"}'
  2. Add a member:
    gws drive permissions create --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}' --json '{"role": "writer", "type": "user", "emailAddress": "member@company.com"}'
  3. List members:
    gws drive permissions list --params '{"fileId": "DRIVE_ID", "supportsAllDrives": true}'