@officexapp/catalogs-cli
v0.1.0
Published
CLI for Catalog Funnel — upload videos, push catalogs, manage assets
Downloads
32
Maintainers
Readme
@officexapp/catalogs-cli
CLI for Catalog Funnel — upload videos, push catalog schemas, manage assets.
Setup
npm install -g @officexapp/catalogs-cliConfigure authentication:
export CATALOGS_API_URL="https://catalog-funnel-api-staging.cloud.zoomgtm.com"
export CATALOGS_TOKEN="cfk_your_api_key_here"Or create ~/.catalogs-cli/config.json:
{
"api_url": "https://catalog-funnel-api-staging.cloud.zoomgtm.com",
"token": "cfk_your_api_key_here"
}Commands
Video
Upload a video, transcode to HLS, and get the streaming URL:
catalogs video upload ./demo.mp4Skip transcoding (upload only):
catalogs video upload ./demo.mp4 --no-transcodeCheck transcode status:
catalogs video status <videoId>Catalog
Push a catalog schema (creates or updates):
catalogs catalog push ./my-funnel.json
catalogs catalog push ./my-funnel.json --publishList all catalogs:
catalogs catalog listAuth
Check your current config:
catalogs whoamiUsing HLS URLs in Catalog Schemas
After uploading a video, use the returned hls_url in your catalog schema:
{
"id": "comp_intro_video",
"type": "video",
"props": {
"hls_url": "https://d1k9qtz75bfygl.cloudfront.net/media/transcoded/user123/video456/index.m3u8",
"poster": "https://example.com/thumb.jpg",
"chapters": [
{ "time": 0, "label": "Intro" },
{ "time": 120, "label": "Demo" },
{ "time": 300, "label": "Pricing" }
],
"skippable": false,
"require_watch_percent": 80
}
}