recipe-create-doc-from-template

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Create a Google Doc from a Template

从模板创建Google Doc

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.
前提条件: 加载以下技能以执行此方案:
gws-drive
gws-docs
复制Google Docs模板、填充内容并与协作者共享。

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
  1. 复制模板:
    gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}'
  2. 从响应中获取新的文档ID
  3. 添加内容:`gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch

Objective

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": "team@company.com"}'`
Launch the new feature by end of Q2.'
 4. 与团队共享:
gws drive permissions create --params '{"fileId": "NEW_DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "team@company.com"}'`