simplecloud 0.0.1-beta.78 → 0.0.1-beta.79

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 (4) hide show
  1. package/README.md +59 -0
  2. package/dist/cli.js +381 -374
  3. package/dist/index.js +355 -348
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -67,6 +67,16 @@ node dist/cli.js --help
67
67
  node dist/cli.js start group test
68
68
  ```
69
69
 
70
+ To test unpublished manifest changes from a local checkout:
71
+
72
+ ```bash
73
+ SC_MANIFEST_DIR=../simplecloud-manifest \
74
+ bun dist/cli.js install service postgresql --yes
75
+ ```
76
+
77
+ `SC_MANIFEST_DIR` makes both `components.yaml` and referenced service files load
78
+ from that directory instead of the published GitHub manifest.
79
+
70
80
  ### Local Development
71
81
 
72
82
  **Option 1: Shell Alias (Recommended - No Conflicts)**
@@ -149,6 +159,55 @@ node dist/cli.js start group mygroup
149
159
  bunx swagger-typescript-api generate -p swagger.yaml -o src/lib/generated -n simplecloud-api.ts --sort-types --single-http-client --clean-output
150
160
  ```
151
161
 
162
+ ## Installing services during setup
163
+
164
+ Manifest services are installed into the hidden `.services` directory inside
165
+ the SimpleCloud installation:
166
+
167
+ ```bash
168
+ simplecloud setup --yes --service postgresql
169
+ ```
170
+
171
+ Repeat `--service` to create more instances. Instances receive stable,
172
+ collision-free directory names and incremented default ports:
173
+
174
+ ```bash
175
+ simplecloud setup --yes \
176
+ --service postgresql \
177
+ --service 'postgresql@players?database=players'
178
+ ```
179
+
180
+ Service dependencies are resolved automatically. Selecting a database installs
181
+ Docker when needed, verifies Docker Compose, renders all manifest files, and
182
+ starts the service. Docker itself is a host installable and does not receive a
183
+ service directory. Database storage is always backed by a named Docker volume.
184
+
185
+ Services can also be added to an existing SimpleCloud installation through the
186
+ existing `install` command:
187
+
188
+ ```bash
189
+ simplecloud install service postgresql
190
+ simplecloud install service postgresql \
191
+ --instance players \
192
+ --set database=players \
193
+ --set port=5433
194
+ ```
195
+
196
+ The command uses the active SimpleCloud context, installs missing host
197
+ dependencies such as Docker, writes the instance to `.services/<instance>`,
198
+ and starts it. Use `--dry-run` to validate and inspect the plan without
199
+ changing the installation.
200
+
201
+ Installed service instances use the same lifecycle syntax as components:
202
+
203
+ ```bash
204
+ simplecloud start postgresql
205
+ simplecloud stop postgresql
206
+ ```
207
+
208
+ Running `simplecloud start` or `simplecloud stop` without targets includes all
209
+ installed components and services. Docker container names include the active
210
+ network slug, for example `my-network-postgresql-database-1`.
152
211
 
153
212
  ## Publishing to npm
154
213