其他

recipe-create-classroom-course

googleworkspace/cli

Create a Google Classroom course and invite students.

  • 3万 次安装
  • 3.2万 星标
  • 收录于

安装命令

npx skills add https://github.com/googleworkspace/cli --skill recipe-create-classroom-course

要点

Automate Google Classroom course creation and student enrollment workflows.

  • Creates courses with customizable name, section, room, and owner details via the gws-classroom skill
  • Invites students by email with role assignment (e.g., STUDENT) and lists enrolled participants
  • Requires the gws-classroom skill as a prerequisite dependency

SKILL.md

Create a Google Classroom Course

PREREQUISITE: Load the following skills to execute this recipe: gws-classroom

Create a Google Classroom course and invite students.

Steps

  1. Create the course: gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'
  2. Invite a student: gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'
  3. List enrolled students: gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table