recipe-batch-rename-files
Batch renames files in Google Drive that match a specific pattern, automating file management and improving work efficiency.
npx skills add https://github.com/googleworkspace/cli --skill recipe-batch-rename-filesBefore / After Comparison
1 组Manually renaming a large number of files in Google Drive is time-consuming, laborious, and prone to errors, especially when the file count is huge, leading to extremely low efficiency.
Automate batch renaming of Google Drive files, manage them efficiently according to specific patterns, significantly improve file organization efficiency, and save valuable time.
recipe-batch-rename-files
Batch Rename Google Drive Files
PREREQUISITE: Load the following skills to execute this recipe: gws-drive
Rename multiple Google Drive files matching a pattern to follow a consistent naming convention.
Steps
-
Find files to rename:
gws drive files list --params '{"q": "name contains '\''Report'\''"}' --format table -
Rename a file:
gws drive files update --params '{"fileId": "FILE_ID"}' --json '{"name": "2025-Q1 Report - Final"}' -
Verify the rename:
gws drive files get --params '{"fileId": "FILE_ID", "fields": "name"}'
Weekly Installs634Repositorygoogleworkspace/cliGitHub Stars21.4KFirst Seen14 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex618gemini-cli616github-copilot616opencode616cursor615kimi-cli614
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill