sitemills-cli 1.0.10 → 1.0.12
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 +7 -9
- package/dist/sitemills.js +1 -1
- package/dist/updater.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -262,11 +262,10 @@ sitemills-cli <command> [options]
|
|
|
262
262
|
```bash
|
|
263
263
|
sitemills-cli seed <projectName> [outputDir]
|
|
264
264
|
```
|
|
265
|
-
- **Folder commands** (`check`, `push`, `commit`, `deploy`): `[dir]` defaults to the current folder and must be a folder created by `export` or `import`. You can always pass `<projectId>
|
|
265
|
+
- **Folder commands** (`check`, `push`, `commit`, `deploy`): `[dir]` defaults to the current folder and must be a folder created by `export` or `import`. You can always pass `<projectId> [dir]` instead.
|
|
266
266
|
- **export**: Download an app's code into a folder and link the folder to the app, so `check`, `push`, `commit`, and `deploy` work inside it without IDs.
|
|
267
267
|
```bash
|
|
268
268
|
sitemills-cli export <projectId> [outputDir] # Working Draft into ./<projectId> by default
|
|
269
|
-
sitemills-cli export <projectId> <branchId> <outputDir>
|
|
270
269
|
```
|
|
271
270
|
- **commit** (or **save-snapshot**): Quickly save a code snapshot to a branch without triggering cloud compilation or tests (~100ms). Only files that differ from the remote branch are uploaded, and remote files missing locally are deleted (pass `--no-prune` to keep them). Automatically saves metadata to `.sitemills/build.json` in the local directory and records the build in `~/.sitemills/builds.json`.
|
|
272
271
|
```bash
|
|
@@ -282,7 +281,7 @@ sitemills-cli <command> [options]
|
|
|
282
281
|
```
|
|
283
282
|
- **compile**: Trigger manual project code compilation for a branch and inspect diagnostics. Pass `--skip-tests` to bypass testing.
|
|
284
283
|
```bash
|
|
285
|
-
sitemills-cli compile <projectId> [--
|
|
284
|
+
sitemills-cli compile <projectId> [--skip-tests]
|
|
286
285
|
```
|
|
287
286
|
- **deploy**: Deploy a branch to an environment (`dev`, `staging`, or `prod`).
|
|
288
287
|
```bash
|
|
@@ -294,7 +293,7 @@ sitemills-cli <command> [options]
|
|
|
294
293
|
```
|
|
295
294
|
- **version-history**: View the timeline of code versions and checkpoints for a specific branch.
|
|
296
295
|
```bash
|
|
297
|
-
sitemills-cli version-history <projectId> [
|
|
296
|
+
sitemills-cli version-history <projectId> [--limit <limit>]
|
|
298
297
|
```
|
|
299
298
|
- **delete**: Delete a project on SiteMills.
|
|
300
299
|
```bash
|
|
@@ -334,7 +333,7 @@ Manage background and scheduled jobs defined in `contracts/jobs.json` and implem
|
|
|
334
333
|
|
|
335
334
|
- **seed-db**: Seed database records for a project/branch from a JSON file.
|
|
336
335
|
```bash
|
|
337
|
-
sitemills-cli seed-db <projectId> <
|
|
336
|
+
sitemills-cli seed-db <projectId> <dataFile.json>
|
|
338
337
|
```
|
|
339
338
|
- **data-copy** (or **clone-scope**): Clone all database collections and records from a source environment/scope to a target scope (e.g. from PROD to STAGING).
|
|
340
339
|
```bash
|
|
@@ -343,7 +342,7 @@ Manage background and scheduled jobs defined in `contracts/jobs.json` and implem
|
|
|
343
342
|
```
|
|
344
343
|
- **data-op**: Execute structured database operations (query, count, seed, mutation preview, mutation apply, or inline Lua execution).
|
|
345
344
|
```bash
|
|
346
|
-
sitemills-cli data-op <projectId> <payloadJsonOrFile> [--
|
|
345
|
+
sitemills-cli data-op <projectId> <payloadJsonOrFile> [--env <environment>] [--mock-user <email>]
|
|
347
346
|
```
|
|
348
347
|
*Inline Example:*
|
|
349
348
|
```bash
|
|
@@ -362,11 +361,11 @@ Manage background and scheduled jobs defined in `contracts/jobs.json` and implem
|
|
|
362
361
|
|
|
363
362
|
- **logs**: Fetch runtime logs with optional branch, environment, and level filtering.
|
|
364
363
|
```bash
|
|
365
|
-
sitemills-cli logs <projectId> [--
|
|
364
|
+
sitemills-cli logs <projectId> [--env <environment>] [--level <INFO|WARN|ERROR>] [--limit <limit>]
|
|
366
365
|
```
|
|
367
366
|
- **workflows**: List recent AI/agentic workflows run on the project, including prompts, token consumption, and status.
|
|
368
367
|
```bash
|
|
369
|
-
sitemills-cli workflows <projectId> [--
|
|
368
|
+
sitemills-cli workflows <projectId> [--limit <limit>]
|
|
370
369
|
```
|
|
371
370
|
- **credits**: Query remaining credit and token usage balances for a project.
|
|
372
371
|
```bash
|
|
@@ -513,7 +512,6 @@ How the CLI stays current depends on how you installed it:
|
|
|
513
512
|
- `--skip-tests`: Bypass automated test suite execution during push and compilation.
|
|
514
513
|
- `--params <json>`: JSON payload parameters for on-demand job execution (`jobs run`).
|
|
515
514
|
- `--reason <reason>`: Reason message when pausing a background job (`jobs pause`).
|
|
516
|
-
- `--branch <branch>`: Target branch ID or branch data scope.
|
|
517
515
|
- `--env <environment>`: Target environment name (`DEV`, `STAGING`, or `PROD`).
|
|
518
516
|
- `--filter <filter>`: JSON query filter for `run-lua` (e.g. `'{"status":"pending"}'`).
|
|
519
517
|
- `--dry-run`: Execute Lua script as a dry run simulation without applying database writes.
|