@whop/cli 0.0.1 → 0.0.2

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 (3) hide show
  1. package/README.md +9 -1
  2. package/bin/whop.js +31 -1
  3. package/package.json +12 -4
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
1
  # @whop/cli
2
2
 
3
- Reserved package for the official Whop CLI.
3
+ Official Whop CLI package.
4
+
5
+ The full CLI is coming soon. For now, create a Whop app with:
6
+
7
+ ```bash
8
+ pnpm create whop-app
9
+ ```
10
+
11
+ Docs: https://docs.whop.com
package/bin/whop.js CHANGED
@@ -1,3 +1,33 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- process.exit(0);
3
+ const { version } = require("../package.json");
4
+
5
+ const args = process.argv.slice(2);
6
+ const firstArg = args[0];
7
+
8
+ if (firstArg === "--version" || firstArg === "-v") {
9
+ console.log(version);
10
+ process.exit(0);
11
+ }
12
+
13
+ if (!firstArg || firstArg === "--help" || firstArg === "-h") {
14
+ console.log(`Whop CLI is coming soon.
15
+
16
+ For now, create a Whop app with:
17
+
18
+ pnpm create whop-app
19
+
20
+ Docs: https://docs.whop.com`);
21
+ process.exit(0);
22
+ }
23
+
24
+ console.error(`Unknown command: ${firstArg}
25
+
26
+ Whop CLI is coming soon.
27
+
28
+ For now, create a Whop app with:
29
+
30
+ pnpm create whop-app
31
+
32
+ Docs: https://docs.whop.com`);
33
+ process.exit(1);
package/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "@whop/cli",
3
- "version": "0.0.1",
4
- "description": "Official Whop CLI placeholder",
3
+ "version": "0.0.2",
4
+ "description": "Official Whop CLI",
5
5
  "main": "./bin/whop.js",
6
- "keywords": [],
7
- "author": "",
6
+ "keywords": [
7
+ "whop",
8
+ "cli",
9
+ "developer-tools"
10
+ ],
11
+ "author": "Whop",
8
12
  "license": "MIT",
9
13
  "type": "commonjs",
14
+ "homepage": "https://docs.whop.com",
15
+ "bugs": {
16
+ "url": "https://github.com/whopio/whop-monorepo/issues"
17
+ },
10
18
  "publishConfig": {
11
19
  "access": "public"
12
20
  },