skool-cli 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,9 +32,21 @@ skool whoami --group my-community
32
32
  # Create a new course
33
33
  skool create-course -g my-community -t "Course Name" -d "Description"
34
34
 
35
- # Create course with privacy setting
36
- skool create-course -g my-community -t "Premium Course" -d "Desc" --privacy level
35
+ # Create course with cover image and privacy
36
+ skool create-course -g my-community -t "Premium Course" -d "Desc" --privacy level --cover cover.jpg
37
37
  # Privacy options: open (default), level, buy, time, private
38
+
39
+ # Edit a course
40
+ skool edit-course --id COURSE_ID --title "New Name" --description "Updated desc"
41
+ skool edit-course --id COURSE_ID --privacy private
42
+ skool edit-course --id COURSE_ID --cover new-cover.jpg -g my-community
43
+
44
+ # List courses (to get IDs)
45
+ skool list-courses -g my-community
46
+ skool list-courses -g my-community --json
47
+
48
+ # Delete a course
49
+ skool delete-course --id COURSE_ID
38
50
  ```
39
51
 
40
52
  ### Lessons
@@ -113,13 +125,19 @@ import { SkoolClient } from 'skool-cli';
113
125
  const client = new SkoolClient();
114
126
  await client.login('you@email.com', 'yourpass');
115
127
 
116
- // Create a course
128
+ // Create a course with cover image
117
129
  await client.createCourse({
118
130
  group: 'my-community',
119
131
  title: 'My Course',
120
132
  description: 'Course description',
133
+ coverImage: './cover.jpg',
121
134
  });
122
135
 
136
+ // List and edit courses
137
+ const { courses } = await client.listCourses('my-community');
138
+ await client.editCourse({ id: courses[0].id, title: 'Updated Name' });
139
+ await client.deleteCourse(courses[0].id);
140
+
123
141
  // Create a lesson with video and resources
124
142
  await client.createLesson({
125
143
  group: 'my-community',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skool-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "CLI and programmatic API for Skool.com automation — create lessons, posts, and manage communities via browser automation",
5
5
  "type": "module",
6
6
  "main": "dist/core/skool-client.js",