Skip to content

Commit 0f7ef2f

Browse files
MajorTalclaude
andcommitted
docs(llms-cli): document --quiet and progress events stream for sites deploy
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 143f408 commit 0f7ef2f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cli/llms-cli.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,15 @@ const complete = await fetch(`https://api.run402.com/storage/v1/uploads/${init.u
450450

451451
### sites
452452
- `run402 sites deploy --manifest <file> [--project <id>] [--target <target>]`
453-
- `run402 sites deploy-dir <path> [--project <id>] [--target <target>]`
453+
- `run402 sites deploy-dir <path> [--project <id>] [--target <target>] [--quiet]`
454454
- `run402 sites status <deployment_id>`
455455

456456
`--project` defaults to the active project. Manifest: `{"files":[{"file":"index.html","data":"..."},{"file":"style.css","data":"..."}]}`. Must include `index.html`. Free with active tier. If the project already has a subdomain, redeploying auto-reassigns it to the new deployment (response includes `subdomain_urls`).
457457

458458
**Plan/commit transport (v1.32+)**: Both `sites deploy` and `sites deploy-dir` hash each file locally and only PUT bytes the gateway doesn't already have. Re-deploying an unchanged tree returns immediately with `bytes_uploaded: 0`. The previous `--inherit` flag is removed (passing it exits 1 with a deprecation message) — incremental upload now happens automatically.
459459

460+
**Progress events (v1.45+)**: `sites deploy` and `sites deploy-dir` stream JSON-line progress events to **stderr** by default; the final `{"status":"ok",...}` envelope still goes to stdout. Phases: `{"phase":"plan","manifest_size":N}`, `{"phase":"upload","file":"...","sha256":"...","done":k,"total":N}` (one per uploaded file — CAS-deduped files don't fire), `{"phase":"commit"}`, `{"phase":"poll","status":"copying","elapsed_ms":N}` (per Stage-2 copy poll tick). Pipe streams separately: `run402 sites deploy-dir ./dist --project p > result.json 2> events.log`. Pass `--quiet` to suppress events (stdout still gets the result envelope).
461+
460462
### subdomains
461463
- `run402 subdomains claim <name> [--deployment <id>] [--project <id>]`
462464
- `run402 subdomains list [<id>]`

0 commit comments

Comments
 (0)