$npx -y skills add googleworkspace/cli --skill recipe-create-classroom-courseCreate a Google Classroom course and invite students.
| 1 | # Create a Google Classroom Course |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-classroom` |
| 4 | |
| 5 | Create a Google Classroom course and invite students. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. Create the course: `gws classroom courses create --json '{"name": "Introduction to CS", "section": "Period 1", "room": "Room 101", "ownerId": "me"}'` |
| 10 | 2. Invite a student: `gws classroom invitations create --json '{"courseId": "COURSE_ID", "userId": "student@school.edu", "role": "STUDENT"}'` |
| 11 | 3. List enrolled students: `gws classroom courses students list --params '{"courseId": "COURSE_ID"}' --format table` |