recipe-create-classroom-course▌
googleworkspace/cli · updated Apr 8, 2026
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
1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Create a Google Classroom Course</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-classroom</code></p>\n</blockquote>\n<p>Create a Google Classroom course and invite students.</p>\n<h2>Steps</h2>\n<ol>\n<li>Create the course: <code>gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'</code></li>\n<li>Invite a student: <code>gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'</code></li>\n<li>List enrolled students: <code>gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table</code></li>\n</ol>"}}]