@magic-meal-kits/cli 1.4.0 → 1.5.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/LICENSE +7 -0
- package/README.md +95 -25
- package/package.json +8 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2026 Magic Meal Kits. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software is free to install and redistribute.
|
|
4
|
+
Use of this software requires an active Magic Meal Kits subscription.
|
|
5
|
+
|
|
6
|
+
Unauthorized copying, modification, or distribution of the source code
|
|
7
|
+
is strictly prohibited.
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Magic Meal Kits CLI (`mmk`)
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is currently in **beta**. Features and APIs may change without notice.
|
|
2
5
|
|
|
3
6
|
CLI tool for interacting with your Magic Meal Kits server.
|
|
4
7
|
|
|
@@ -8,46 +11,113 @@ CLI tool for interacting with your Magic Meal Kits server.
|
|
|
8
11
|
npm install -g @magic-meal-kits/cli
|
|
9
12
|
```
|
|
10
13
|
|
|
11
|
-
##
|
|
14
|
+
## Quick Start
|
|
12
15
|
|
|
13
16
|
```bash
|
|
14
|
-
|
|
17
|
+
# 1. Point to your server
|
|
18
|
+
mmk config set server https://your-app.run.app
|
|
19
|
+
|
|
20
|
+
# 2. Authenticate
|
|
21
|
+
mmk auth login
|
|
22
|
+
|
|
23
|
+
# 3. Check connection
|
|
24
|
+
mmk status
|
|
15
25
|
```
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
### Core
|
|
30
|
+
|
|
31
|
+
| Command | Description |
|
|
32
|
+
|---------|-------------|
|
|
33
|
+
| `mmk` | Show version and help |
|
|
34
|
+
| `mmk version` | Show CLI version and commit |
|
|
35
|
+
| `mmk status` | Show server health and auth status |
|
|
36
|
+
|
|
37
|
+
### Config
|
|
38
|
+
|
|
39
|
+
Manage CLI configuration. Config is stored at `~/.config/mmk/config.yaml`.
|
|
18
40
|
|
|
19
41
|
| Command | Description |
|
|
20
42
|
|---------|-------------|
|
|
21
|
-
| `mmk
|
|
22
|
-
| `mmk auth logout` | Log out and clear credentials |
|
|
23
|
-
| `mmk status` | Show connection and auth status |
|
|
24
|
-
| `mmk config set <key> <value>` | Set configuration (e.g., server URL) |
|
|
43
|
+
| `mmk config set <key> <value>` | Set a config value (`server`, `output`, `api-key`) |
|
|
25
44
|
| `mmk config show` | Show current configuration |
|
|
26
|
-
| `mmk notion invite` | Invite a user to a Notion page |
|
|
27
|
-
| `mmk notion subscription` | Manage Notion subscriptions |
|
|
28
|
-
| `mmk youtube` | YouTube tools |
|
|
29
|
-
| `mmk version` | Show CLI version |
|
|
30
45
|
|
|
31
|
-
###
|
|
46
|
+
### Auth
|
|
32
47
|
|
|
33
|
-
|
|
34
|
-
# 1. Set your server URL
|
|
35
|
-
mmk config set server https://your-app.run.app
|
|
48
|
+
Authenticate with your Magic Meal Kits server using OAuth 2.0.
|
|
36
49
|
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
| Command | Description |
|
|
51
|
+
|---------|-------------|
|
|
52
|
+
| `mmk auth login` | Authenticate using browser-based PKCE flow |
|
|
53
|
+
| `mmk auth logout` | Revoke tokens and clear local credentials |
|
|
54
|
+
| `mmk auth status` | Show current authentication status |
|
|
39
55
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
### Notion
|
|
57
|
+
|
|
58
|
+
Notion page and subscription management.
|
|
59
|
+
|
|
60
|
+
| Command | Description |
|
|
61
|
+
|---------|-------------|
|
|
62
|
+
| `mmk notion subscription` | Show workspace subscription details |
|
|
63
|
+
| `mmk notion workspace invite` | Invite a user to the workspace |
|
|
64
|
+
| `mmk notion workspace remove` | Remove a user from the workspace |
|
|
65
|
+
| `mmk notion page invite` | Invite a guest user to a page |
|
|
66
|
+
| `mmk notion page revoke` | Revoke a user's access to a page |
|
|
67
|
+
| `mmk notion page publish` | Publish a page to the web |
|
|
68
|
+
| `mmk notion page unpublish` | Unpublish a page from the web |
|
|
69
|
+
| `mmk notion page publish-settings` | Update publish settings |
|
|
70
|
+
| `mmk notion page config` | Configure page display settings |
|
|
71
|
+
| `mmk notion page duplicate` | Duplicate a page into a parent page |
|
|
72
|
+
| `mmk notion page list-published` | List all published pages |
|
|
73
|
+
| `mmk notion team list` | List teams in the workspace |
|
|
74
|
+
| `mmk notion team invite` | Invite a user to a team |
|
|
75
|
+
| `mmk notion team remove` | Remove a user from a team |
|
|
76
|
+
| `mmk notion people list` | List workspace members and guests |
|
|
77
|
+
| `mmk notion people guest-pages` | Show which pages a guest has access to |
|
|
78
|
+
| `mmk notion meeting list` | List AI meeting notes |
|
|
79
|
+
| `mmk notion database schema` | Show database property schema with AI detection |
|
|
80
|
+
| `mmk notion database ai-summary` | Trigger AI summary generation for pages |
|
|
81
|
+
|
|
82
|
+
### Threads (PRO)
|
|
83
|
+
|
|
84
|
+
Requires PRO license. Set your API key first: `mmk config set api-key <key>`
|
|
85
|
+
|
|
86
|
+
| Command | Description |
|
|
87
|
+
|---------|-------------|
|
|
88
|
+
| `mmk threads posts` | Get my recent posts |
|
|
89
|
+
| `mmk threads insights` | Account analytics (views, likes, followers) |
|
|
90
|
+
| `mmk threads replies <media_id>` | Get replies/conversation for a post |
|
|
91
|
+
|
|
92
|
+
### Paymint (PRO)
|
|
93
|
+
|
|
94
|
+
Requires PRO or paymint_only license.
|
|
95
|
+
|
|
96
|
+
| Command | Description |
|
|
97
|
+
|---------|-------------|
|
|
98
|
+
| `mmk paymint licenses` | List approved paymint licenses |
|
|
99
|
+
| `mmk paymint send` | Send a payment invoice |
|
|
100
|
+
| `mmk paymint status` | Check invoice status |
|
|
101
|
+
| `mmk paymint cancel` | Cancel/refund an invoice |
|
|
102
|
+
| `mmk paymint resend` | Resend invoice SMS |
|
|
103
|
+
|
|
104
|
+
### YouTube (PRO)
|
|
105
|
+
|
|
106
|
+
Requires PRO license. Set your API key first: `mmk config set api-key <key>`
|
|
107
|
+
|
|
108
|
+
| Command | Description |
|
|
109
|
+
|---------|-------------|
|
|
110
|
+
| `mmk youtube transcript <url>` | Get transcript for a YouTube video |
|
|
111
|
+
| `mmk youtube metadata <url>` | Get video metadata |
|
|
112
|
+
| `mmk youtube videotype <url>` | Identify video type (regular or Short) |
|
|
43
113
|
|
|
44
|
-
|
|
114
|
+
## Global Flags
|
|
45
115
|
|
|
46
116
|
| Flag | Description |
|
|
47
117
|
|------|-------------|
|
|
48
118
|
| `--server` | Server URL (overrides config) |
|
|
49
|
-
| `--config` | Config file path (default `~/.config/mmk/config.yaml`) |
|
|
50
|
-
| `-o, --output` | Output format: `table` or `json` |
|
|
119
|
+
| `--config` | Config file path (default: `~/.config/mmk/config.yaml`) |
|
|
120
|
+
| `-o, --output` | Output format: `table` or `json` (default: `table`) |
|
|
51
121
|
|
|
52
122
|
## Supported Platforms
|
|
53
123
|
|
|
@@ -57,4 +127,4 @@ mmk status
|
|
|
57
127
|
|
|
58
128
|
## License
|
|
59
129
|
|
|
60
|
-
|
|
130
|
+
SEE LICENSE IN LICENSE
|
package/package.json
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-meal-kits/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Magic Meal Kits CLI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mmk": "bin/mmk.js"
|
|
7
7
|
},
|
|
8
8
|
"optionalDependencies": {
|
|
9
|
-
"@magic-meal-kits/cli-darwin-arm64": "1.
|
|
10
|
-
"@magic-meal-kits/cli-darwin-x64": "1.
|
|
11
|
-
"@magic-meal-kits/cli-linux-arm64": "1.
|
|
12
|
-
"@magic-meal-kits/cli-linux-x64": "1.
|
|
13
|
-
"@magic-meal-kits/cli-win32-arm64": "1.
|
|
14
|
-
"@magic-meal-kits/cli-win32-x64": "1.
|
|
9
|
+
"@magic-meal-kits/cli-darwin-arm64": "1.5.1",
|
|
10
|
+
"@magic-meal-kits/cli-darwin-x64": "1.5.1",
|
|
11
|
+
"@magic-meal-kits/cli-linux-arm64": "1.5.1",
|
|
12
|
+
"@magic-meal-kits/cli-linux-x64": "1.5.1",
|
|
13
|
+
"@magic-meal-kits/cli-win32-arm64": "1.5.1",
|
|
14
|
+
"@magic-meal-kits/cli-win32-x64": "1.5.1"
|
|
15
15
|
},
|
|
16
|
-
"license": "
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/pureugong/make-docker-pack"
|
|
20
|
-
}
|
|
16
|
+
"license": "SEE LICENSE IN LICENSE"
|
|
21
17
|
}
|