You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submits a Shotstack Edit JSON to the render API. Returns a render ID.
53
+
Submits a Shotstack Edit JSON to the render API. Returns a render ID. With `--watch`, polls until the render reaches a terminal state and prints the output URL — equivalent to `render` followed by `status --watch` but in one command.
54
54
55
55
```sh
56
56
shotstack render my-template.json
57
57
shotstack render my-template.json --output json
58
+
shotstack render my-template.json --watch # submit + poll until done
@@ -57,11 +61,11 @@ Use `render` only when you're confident the JSON is final, or there's no human t
57
61
58
62
## Four CLI rules
59
63
60
-
1.**Pipe → `--output json`.** Default output is human-readable. When parsing programmatically or piping to another command, always pass `--output json`. The text format is not stable across versions.
64
+
1.**Pipe → `--output json`.** Default output is human-readable. When parsing programmatically or piping to another command, always pass `--output json`.
61
65
62
-
2.**Use `--watch`, not a polling loop.**`shotstack status <id> --watch`exits when the render reaches`done` (exit 0) or `failed` (exit 1). Don't write `while true; do ...; sleep 3; done`.
66
+
2.**Use `--watch`, not a polling loop.**`shotstack render <file> --watch` submits and polls in one shot; `shotstack status <id> --watch`polls an existing render. Both exit when terminal:`done` (exit 0) or `failed` (exit 1). Don't write `while true; do ...; sleep 3; done`.
63
67
64
-
3.**Fetch the current docs before generating Edit JSON.** The Shotstack API evolves; LLM training data is often stale. Pull <https://shotstack.io/docs/guide/llms-full.txt> for the current schema and examples before composing an Edit from scratch.
68
+
3.**Fetch the current schema and docs before generating Edit JSON.** The Shotstack API evolves; LLM training data is often stale. Pull <https://shotstack.io/docs/api/api.edit.json> and <https://shotstack.io/docs/guide/llms-full.txt> for the current schema and guides before composing an Edit from scratch.
65
69
66
70
4.**Hand off to a human via `preview` when uncertain.** Don't burn render credits iterating. Generate JSON → `shotstack preview` → human reviews/tweaks → render only when right.
0 commit comments