Recipe Create Doc From Template

by googleworkspacea3768d0e82adNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Copy a Google Docs template, fill in content, and share with collaborators.

Instructions onlyDocuments & Office
AI-generated overview

Copies a Google Docs template, fills in content, and shares the new document with collaborators.

What it does
This recipe walks through creating a Google Doc from an existing template using the gws command-line tool. It copies the template file, retrieves the new document ID, writes content into the document, and grants a collaborator writer access. The result is a filled-in, shared Google Doc.
When to use it
Use this when you need to produce a new document based on a standard Google Docs template and then share it with a team or collaborator. It suits repeatable document creation such as project briefs or launch plans.
Requirements
Requires the gws command-line tool and the gws-drive and gws-docs skills. Needs access to Google Drive and Google Docs, including a template document ID and collaborator email addresses. Ships no scripts; instructions only.

Create a Google Doc from a Template

PREREQUISITE: Load the following skills to execute this recipe: gws-drive, gws-docs

Copy a Google Docs template, fill in content, and share with collaborators.

Steps

  1. Copy the template: gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}'
  2. Get the new doc ID from the response
  3. Add content: `gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch

Objective

Launch the new feature by end of Q2.'4. Share with team:gws drive permissions create --params '{"fileId": "NEW_DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "[email protected]"}'`

Source and attribution

Source:googleworkspace/cliinskills/recipe-create-doc-from-templateat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal