skool-cli 1.7.0 → 1.7.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.
- package/README.md +11 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,12 @@ skool edit-course --id COURSE_ID --cover new-cover.jpg -g my-community
|
|
|
45
45
|
skool list-courses -g my-community
|
|
46
46
|
skool list-courses -g my-community --json
|
|
47
47
|
|
|
48
|
+
# Move a course left/right in the classroom
|
|
49
|
+
skool move-course --id COURSE_ID --direction right
|
|
50
|
+
|
|
51
|
+
# Duplicate a course (copies all content)
|
|
52
|
+
skool duplicate-course --id COURSE_ID
|
|
53
|
+
|
|
48
54
|
# Delete a course
|
|
49
55
|
skool delete-course --id COURSE_ID
|
|
50
56
|
```
|
|
@@ -113,7 +119,7 @@ Lessons support full markdown:
|
|
|
113
119
|
- **Bold**, *italic*, ***bold+italic***, ~~strikethrough~~, `inline code`
|
|
114
120
|
- Code blocks with language hints
|
|
115
121
|
- Bullet and numbered lists
|
|
116
|
-
- [Links](url) and 
|
|
122
|
+
- [Links](url) and  (local files auto-uploaded)
|
|
117
123
|
- > Blockquotes
|
|
118
124
|
- Horizontal rules (`---`)
|
|
119
125
|
|
|
@@ -133,9 +139,11 @@ await client.createCourse({
|
|
|
133
139
|
coverImage: './cover.jpg',
|
|
134
140
|
});
|
|
135
141
|
|
|
136
|
-
// List
|
|
142
|
+
// List, edit, move, duplicate courses
|
|
137
143
|
const { courses } = await client.listCourses('my-community');
|
|
138
144
|
await client.editCourse({ id: courses[0].id, title: 'Updated Name' });
|
|
145
|
+
await client.moveCourse(courses[0].id, 'right');
|
|
146
|
+
await client.duplicateCourse(courses[0].id);
|
|
139
147
|
await client.deleteCourse(courses[0].id);
|
|
140
148
|
|
|
141
149
|
// Create a lesson with video and resources
|
|
@@ -143,7 +151,7 @@ await client.createLesson({
|
|
|
143
151
|
group: 'my-community',
|
|
144
152
|
module: 'Module 1',
|
|
145
153
|
title: 'Lesson 1',
|
|
146
|
-
markdownContent: '## Hello\n\nThis is a lesson with an ',
|
|
147
155
|
videoUrl: 'https://youtu.be/xxx',
|
|
148
156
|
resources: [
|
|
149
157
|
{ title: 'Documentation', link: 'https://docs.example.com' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skool-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.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",
|