@magic-meal-kits/cli 1.0.1 → 1.0.3
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 +60 -0
- package/bin/mmk.js +7 -7
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @magic-meal-kits/cli
|
|
2
|
+
|
|
3
|
+
CLI tool for interacting with your Magic Meal Kits server.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @magic-meal-kits/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
mmk [command] [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Commands
|
|
18
|
+
|
|
19
|
+
| Command | Description |
|
|
20
|
+
|---------|-------------|
|
|
21
|
+
| `mmk auth login` | Authenticate with your server |
|
|
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) |
|
|
25
|
+
| `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
|
+
|
|
31
|
+
### Quick Start
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Set your server URL
|
|
35
|
+
mmk config set server https://your-app.run.app
|
|
36
|
+
|
|
37
|
+
# 2. Log in
|
|
38
|
+
mmk auth login
|
|
39
|
+
|
|
40
|
+
# 3. Check status
|
|
41
|
+
mmk status
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Global Flags
|
|
45
|
+
|
|
46
|
+
| Flag | Description |
|
|
47
|
+
|------|-------------|
|
|
48
|
+
| `--server` | Server URL (overrides config) |
|
|
49
|
+
| `--config` | Config file path (default `~/.config/mmk/config.yaml`) |
|
|
50
|
+
| `-o, --output` | Output format: `table` or `json` |
|
|
51
|
+
|
|
52
|
+
## Supported Platforms
|
|
53
|
+
|
|
54
|
+
- macOS (Apple Silicon, Intel)
|
|
55
|
+
- Linux (x64, ARM64)
|
|
56
|
+
- Windows (x64, ARM64)
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
UNLICENSED
|
package/bin/mmk.js
CHANGED
|
@@ -5,12 +5,12 @@ const path = require("path");
|
|
|
5
5
|
const os = require("os");
|
|
6
6
|
|
|
7
7
|
const PLATFORM_PACKAGES = {
|
|
8
|
-
"darwin-arm64": "@
|
|
9
|
-
"darwin-x64": "@
|
|
10
|
-
"linux-arm64": "@
|
|
11
|
-
"linux-x64": "@
|
|
12
|
-
"win32-arm64": "@
|
|
13
|
-
"win32-x64": "@
|
|
8
|
+
"darwin-arm64": "@magic-meal-kits/cli-darwin-arm64",
|
|
9
|
+
"darwin-x64": "@magic-meal-kits/cli-darwin-x64",
|
|
10
|
+
"linux-arm64": "@magic-meal-kits/cli-linux-arm64",
|
|
11
|
+
"linux-x64": "@magic-meal-kits/cli-linux-x64",
|
|
12
|
+
"win32-arm64": "@magic-meal-kits/cli-win32-arm64",
|
|
13
|
+
"win32-x64": "@magic-meal-kits/cli-win32-x64",
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
function getBinaryPath() {
|
|
@@ -31,7 +31,7 @@ function getBinaryPath() {
|
|
|
31
31
|
return path.join(path.dirname(pkgPath), "bin", binName);
|
|
32
32
|
} catch {
|
|
33
33
|
console.error(`Platform package ${pkg} not installed.`);
|
|
34
|
-
console.error("Try: npm install -g @
|
|
34
|
+
console.error("Try: npm install -g @magic-meal-kits/cli");
|
|
35
35
|
process.exit(1);
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-meal-kits/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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.0.
|
|
10
|
-
"@magic-meal-kits/cli-darwin-x64": "1.0.
|
|
11
|
-
"@magic-meal-kits/cli-linux-arm64": "1.0.
|
|
12
|
-
"@magic-meal-kits/cli-linux-x64": "1.0.
|
|
13
|
-
"@magic-meal-kits/cli-win32-arm64": "1.0.
|
|
14
|
-
"@magic-meal-kits/cli-win32-x64": "1.0.
|
|
9
|
+
"@magic-meal-kits/cli-darwin-arm64": "1.0.3",
|
|
10
|
+
"@magic-meal-kits/cli-darwin-x64": "1.0.3",
|
|
11
|
+
"@magic-meal-kits/cli-linux-arm64": "1.0.3",
|
|
12
|
+
"@magic-meal-kits/cli-linux-x64": "1.0.3",
|
|
13
|
+
"@magic-meal-kits/cli-win32-arm64": "1.0.3",
|
|
14
|
+
"@magic-meal-kits/cli-win32-x64": "1.0.3"
|
|
15
15
|
},
|
|
16
16
|
"license": "UNLICENSED",
|
|
17
17
|
"repository": {
|