
Recipe Organize Drive Folder
A straightforward recipe for creating nested Google Drive folder hierarchies and organizing existing files into them. You'll use this when migrating messy Drive storage or setting up project structures. It walks through creating parent folders, adding subfolders with proper parent relationships, moving files between locations, and verifying the final structure with list commands. The recipe handles the typical parent ID juggling that makes Drive organization tedious when done manually. Works well for batch organization tasks, though you'll still need to identify which files go where based on your own logic.
- skills.sh installs
- 31.7K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill recipe-organize-drive-folder --agent claude-codeInstalls into .claude/skills of the current project.
Files
Organize Files into Google Drive Folders
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
Create a Google Drive folder structure and move files into the right locations.
Steps
- Create a project folder:
gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}' - Create sub-folders:
gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}' - Move existing files into folder:
gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}' - Verify structure:
gws drive files list --params '{"q": "FOLDER_ID in parents"}' --format table
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Category
- CLI & Terminal
More from googleworkspace/cli
All 113- Persona Exec Assistant31.6K
- Recipe Find Free Time31.5K
- Gws Workflow File Announce31.5K
- Recipe Compare Sheet Tabs31.5K
- Persona Content Creator31.5K
- Gws Events Renew31.5K
- Gws Events Subscribe31.4K
- Recipe Plan Weekly Schedule31.4K
- Recipe Bulk Download Folder31.4K
- Recipe Create Doc From Template31.4K
- Recipe Sync Contacts To Sheet31.3K
- Gws Admin Reports31.3K
- Recipe Generate Report From Sheet31.2K
- Recipe Label And Archive Emails31.1K
- Recipe Reschedule Meeting31.1K
- Recipe Save Email To Doc31.1K
- Recipe Block Focus Time31K
- Recipe Watch Drive Changes31K
- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
- Recipe Schedule Recurring Event30.9K