Skip to content

Comments

Add all missing Mux API operations to CLI#51

Merged
dylanjha merged 5 commits intomainfrom
dj/missing-api-endpoints
Feb 19, 2026
Merged

Add all missing Mux API operations to CLI#51
dylanjha merged 5 commits intomainfrom
dj/missing-api-endpoints

Conversation

@dylanjha
Copy link
Contributor

@dylanjha dylanjha commented Feb 19, 2026

Summary

Adds 60 new commands covering all remaining Mux API operations for complete HTTP API coverage, plus comprehensive tests and updated README documentation.

New commands

Live Streams (12 new)

  • mux live update <stream-id> — update stream config (latency, reconnect window, title, etc.)
  • mux live complete <stream-id> — signal stream ended
  • mux live disable <stream-id> — prevent new connections
  • mux live enable <stream-id> — re-enable a disabled stream
  • mux live reset-stream-key <stream-id> — reset stream key
  • mux live simulcast-targets create <stream-id> — create simulcast target
  • mux live simulcast-targets get <stream-id> <target-id> — get simulcast target
  • mux live simulcast-targets delete <stream-id> <target-id> — delete simulcast target
  • mux live update-embedded-subtitles <stream-id> — configure CEA-608 captions
  • mux live update-generated-subtitles <stream-id> — configure ASR subtitles
  • mux live update-new-asset-static-renditions <stream-id> — set static renditions for new assets
  • mux live delete-new-asset-static-renditions <stream-id> — remove static rendition settings

Assets (5 new)

  • mux assets input-info <asset-id> — retrieve input file info and tracks
  • mux assets update-master-access <asset-id> — enable/disable master access
  • mux assets tracks create <asset-id> — add text/audio track
  • mux assets tracks delete <asset-id> <track-id> — remove a track
  • mux assets tracks generate-subtitles <asset-id> <track-id> — generate subtitles via ASR

Uploads (4 new)

  • mux uploads create — create direct upload URL
  • mux uploads list — list direct uploads
  • mux uploads get <upload-id> — get upload details
  • mux uploads cancel <upload-id> — cancel a waiting upload

Playback Restrictions (6 new)

  • mux playback-restrictions create — create restriction
  • mux playback-restrictions list — list restrictions
  • mux playback-restrictions get <id> — get restriction details
  • mux playback-restrictions delete <id> — delete restriction
  • mux playback-restrictions update-referrer <id> — update referrer rules
  • mux playback-restrictions update-user-agent <id> — update user agent rules

Transcription Vocabularies (5 new)

  • mux transcription-vocabularies create — create vocabulary
  • mux transcription-vocabularies list — list vocabularies
  • mux transcription-vocabularies get <id> — get vocabulary details
  • mux transcription-vocabularies update <id> — update vocabulary (replaces phrases)
  • mux transcription-vocabularies delete <id> — delete vocabulary

Delivery Usage (1 new)

  • mux delivery-usage list — list delivery usage reports

DRM Configurations (2 new)

  • mux drm-configurations list — list DRM configurations
  • mux drm-configurations get <id> — get DRM configuration details

Video Views (2 new)

  • mux video-views list — list video views with filters
  • mux video-views get <view-id> — get video view details

Metrics (5 new)

  • mux metrics list — list available metrics
  • mux metrics breakdown <metric-id> — breakdown by dimension
  • mux metrics overall <metric-id> — get overall values
  • mux metrics timeseries <metric-id> — get timeseries data
  • mux metrics insights <metric-id> — get performance insights

Monitoring (6 new)

  • mux monitoring dimensions — list monitoring dimensions
  • mux monitoring metrics — list monitoring metrics
  • mux monitoring breakdown <metric-id> — get monitoring breakdown
  • mux monitoring breakdown-timeseries <metric-id> — get breakdown timeseries
  • mux monitoring histogram-timeseries — get histogram timeseries
  • mux monitoring timeseries <metric-id> — get monitoring timeseries

Incidents (3 new)

  • mux incidents list — list incidents
  • mux incidents get <id> — get incident details
  • mux incidents related <id> — list related incidents

Annotations (5 new)

  • mux annotations create — create annotation
  • mux annotations list — list annotations
  • mux annotations get <id> — get annotation details
  • mux annotations update <id> — update annotation
  • mux annotations delete <id> — delete annotation

Dimensions (2 new)

  • mux dimensions list — list available dimensions
  • mux dimensions values <dimension-id> — list dimension values

Errors (1 new)

  • mux errors list — list errors from Mux Data

Exports (1 new)

  • mux exports list — list video view export files

Test plan

  • 592 tests passing across 92 test files
  • TypeScript type checking passes (`pnpm run typecheck`)
  • Biome linting/formatting passes (`pnpm run check`)
  • Smoke test key commands against a real Mux account

🤖 Generated with Claude Code

dylanjha and others added 5 commits February 19, 2026 14:06
…loads, transcription, and playback restrictions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Standardize help strings across all new commands to match the quality
and consistency of the existing commands on main:

- --limit: "Number of results to return" (was "per page")
- --page: "Page number for pagination" (was "Page number")
- --compact: "Output one line per X (grep-friendly)" (was "Compact output format")
- --passthrough: "Arbitrary metadata returned in API responses (max 255 chars)"
- delete commands: add "Permanently" prefix and "(cannot be undone)" suffix
- index descriptions: add parenthetical context explaining each concept
- Unify --timeframe descriptions across all Data API commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dylanjha dylanjha merged commit 4cf9959 into main Feb 19, 2026
7 checks passed
@dylanjha dylanjha deleted the dj/missing-api-endpoints branch February 19, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant