recipe-create-classroom-course
googleworkspace/cli
Create Google Classroom courses and invite students via command line.
What is recipe-create-classroom-course?
A recipe that automates Google Classroom course creation and student enrollment using the gws CLI. Use this when you need to programmatically set up courses and manage student invitations.
- Create a new Google Classroom course with name, section, room, and owner details
- Invite students to a course by email address and assign roles
- List enrolled students in a course in table format
How to install recipe-create-classroom-course
npx skills add null --skill recipe-create-classroom-course- gws CLI installed
- gws-classroom skill loaded
How to use recipe-create-classroom-course
- 1.Create a course using gws classroom courses create with course details (name, section, room, owner)
- 2.Retrieve the COURSE_ID from the created course
- 3.Invite students using gws classroom invitations create with the course ID and student email
- 4.Verify enrollment by listing students with gws classroom courses students list
Use cases
- Bulk create multiple classroom courses for a school term
- Automate student enrollment workflows from a roster
- Set up course structure and invite cohorts of students programmatically
- School administrators
- Educators managing multiple courses
- IT staff automating classroom setup
recipe-create-classroom-course FAQ
You need a course name, section, room identifier, and owner ID (typically 'me' for the authenticated user).
Run the invitation command once per student, or script it to loop through a list of student emails.
The recipe shows STUDENT role; check gws classroom documentation for other available roles like TEACHER.
The recipe focuses on creation and invitations; use gws classroom courses update for modifications.
Full instructions (SKILL.md)
Source of truth, from googleworkspace/cli.
name: recipe-create-classroom-course description: "Create a Google Classroom course and invite students." metadata: version: 0.22.5 openclaw: category: "recipe" domain: "education" requires: bins: - gws skills: - gws-classroom
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
- Create the course:
gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}' - Invite a student:
gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}' - List enrolled students:
gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table
Related skills
More from googleworkspace/cli and the wider catalog.
gws-gmail
Send, read, and manage Gmail emails via Google Workspace CLI.
gws-drive
Manage Google Drive files, folders, and shared drives via CLI.
gws-docs
Read and write Google Docs via command line.
gws-calendar
Manage Google Calendar events, calendars, and access control via CLI.
gws-sheets
Read and write Google Sheets spreadsheets via CLI.
gws-gmail-send
Send emails via Gmail with attachments, CC/BCC, HTML support, and draft options.