Recipe Create Classroom Course

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

Create a Google Classroom course and invite students.

Instructions onlyLearning & Education
AI-generated overview

Creates a Google Classroom course and invites students via the gws CLI.

What it does
This recipe walks through creating a Google Classroom course with a name, section, room and owner, then inviting a student by email address with the STUDENT role. It finishes by listing the students enrolled in the course in table format. It is a short procedural guide rather than a script.
When to use it
Use it when you need to set up a new Google Classroom course and enroll students through the gws command-line tool. It suits instructors or administrators automating classroom setup.
Requirements
Requires the gws CLI binary and the gws-classroom skill to be loaded; it also needs Google Classroom access and appropriate account permissions. It ships no scripts.

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": "[email protected]", "role": "STUDENT"}'
  3. List enrolled students: gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table

Source and attribution

Source:googleworkspace/cliinskills/recipe-create-classroom-courseat commita3768d0

License: No license

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

Report or request removal