CLI
Examples
Practical CLI recipes: generate and chain, preview cost, and script the pipeline.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Practical CLI recipes: generate and chain, preview cost, and script the pipeline.
IMG=$(contenthero generate image \
--prompt "a marble bust of an owl, studio light" \
--model nano-banana-2 | jq -r '.outputId')
contenthero generate video \
--prompt "slow push in, dust motes in the light" \
--model kling-3.0 \
--start-frame "$IMG"
for P in "a red cube" "a blue sphere" "a green pyramid"; do
contenthero generate image --prompt "$P" --model nano-banana-2 --cost \
| jq -r '"\(.modelId): \(.creditsEstimate) credits"'
done
BK=$(contenthero brand-kit list | jq -r '.[0].id')
contenthero brand-kit knowledge search "$BK" "what is our stance on short hooks" \
| jq -r '.matches[] | "\(.score): \(.title)"'
CARD=$(contenthero card create "Launch teaser" --platform instagram | jq -r '.id')
contenthero card update "$CARD" \
--notes "$CAPTION" \
--assets "[{\"assetUrl\":\"$VIDEO_URL\"}]" \
--posts "[{\"platform\":\"instagram\",\"format\":\"reel\",\"connectedAccountId\":\"$IG\"}]" \
--schedule "2026-07-01T15:00:00Z"
ID=$(contenthero generate video --prompt "..." --model kling-3.0 --no-wait | jq -r '.outputId')
if contenthero generation wait "$ID"; then
echo "done"
else
echo "still rendering or failed (exit $?)"
fi