simplecloud 0.0.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 ADDED
@@ -0,0 +1,96 @@
1
+ # SimpleCloud CLI
2
+
3
+ A command-line interface tool for SimpleCloud.
4
+
5
+ ## Development
6
+
7
+ ### Prerequisites
8
+
9
+ - Node.js >= 18.0.0
10
+ - Bun (for development)
11
+
12
+ ### Setup
13
+
14
+ Install dependencies:
15
+
16
+ ```bash
17
+ bun install
18
+ ```
19
+
20
+ ### Development
21
+
22
+ Run the CLI in development mode:
23
+
24
+ ```bash
25
+ bun run dev
26
+ ```
27
+
28
+ ### Building
29
+
30
+ Build the CLI for distribution:
31
+
32
+ ```bash
33
+ bun run build
34
+ ```
35
+
36
+ This creates optimized, minified bundles in the `dist/` folder that include all dependencies.
37
+
38
+ ### Testing
39
+
40
+ Test the built CLI:
41
+
42
+ ```bash
43
+ bun run test:cli
44
+ ```
45
+
46
+ Test specific commands:
47
+
48
+ ```bash
49
+ node dist/cli.js --help
50
+ node dist/cli.js start group test
51
+ ```
52
+
53
+ ### Local Installation
54
+
55
+ To install the CLI globally on your system for testing:
56
+
57
+ ```bash
58
+ bun run local:install
59
+ ```
60
+
61
+ Then you can use it anywhere:
62
+
63
+ ```bash
64
+ simplecloud --help
65
+ simplecloud start group mygroup
66
+ ```
67
+
68
+ To uninstall:
69
+
70
+ ```bash
71
+ bun run local:uninstall
72
+ ```
73
+
74
+ ## Publishing to npm
75
+
76
+ 1. Update the version in `package.json`
77
+ 2. Update author, repository, and other metadata fields
78
+ 3. Ensure you're logged into npm: `npm login`
79
+ 4. Publish: `npm publish`
80
+
81
+ The `prepublishOnly` script will automatically build the project before publishing.
82
+
83
+ ## Bundle Details
84
+
85
+ - **Entry Points**: `src/index.ts` (library) and `src/cli.ts` (CLI executable)
86
+ - **Output**: Single minified JavaScript files with all dependencies bundled
87
+ - **Runtime**: Node.js (bundled with `@effect/platform-node`)
88
+ - **Bundle Size**: ~1.3MB for CLI (includes Effect.ts runtime)
89
+ - **No Source Code Exposure**: Only minified bundles are published
90
+
91
+ ## CLI Usage
92
+
93
+ ```bash
94
+ simplecloud --help
95
+ simplecloud start group <group-name>
96
+ ```