recipe-copy-sheet-for-new-monthby Google
Duplicate a Google Sheets template tab for a new month of tracking.
npx skills add https://github.com/googleworkspace/cli --skill recipe-copy-sheet-for-new-monthCopy a Google Sheet for a New Month
PREREQUISITE: Load the following skills to execute this recipe:
gws-sheets
Duplicate a Google Sheets template tab for a new month of tracking.
Steps
- Get spreadsheet details:
gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}' - Copy the template sheet:
gws sheets spreadsheets sheets copyTo --params '{"spreadsheetId": "SHEET_ID", "sheetId": 0}' --json '{"destinationSpreadsheetId": "SHEET_ID"}' - Rename the new tab:
gws sheets spreadsheets batchUpdate --params '{"spreadsheetId": "SHEET_ID"}' --json '{"requests": [{"updateSheetProperties": {"properties": {"sheetId": 123, "title": "February 2025"}, "fields": "title"}}]}'
More skills from Google
gws-groupssettings
by Google
Manage Google Groups settings.
gws-modelarmor-sanitize-response
by Google
Google Model Armor: Sanitize a model response through a Model Armor template.
gws-people
by Google
Google People: Manage contacts and profiles.
gws-reseller
by Google
Google Workspace Reseller: Manage Workspace subscriptions.
gws-shared
by Google
gws CLI: Shared patterns for authentication, global flags, and output formatting.
gws-sheets
by Google
Google Sheets: Read and write spreadsheets.
gws-sheets-append
by Google
Google Sheets: Append a row to a spreadsheet.
gws-sheets-read
by Google
Google Sheets: Read values from a spreadsheet.