Add all missing Mux API operations to CLI#51
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 endedmux live disable <stream-id>— prevent new connectionsmux live enable <stream-id>— re-enable a disabled streammux live reset-stream-key <stream-id>— reset stream keymux live simulcast-targets create <stream-id>— create simulcast targetmux live simulcast-targets get <stream-id> <target-id>— get simulcast targetmux live simulcast-targets delete <stream-id> <target-id>— delete simulcast targetmux live update-embedded-subtitles <stream-id>— configure CEA-608 captionsmux live update-generated-subtitles <stream-id>— configure ASR subtitlesmux live update-new-asset-static-renditions <stream-id>— set static renditions for new assetsmux live delete-new-asset-static-renditions <stream-id>— remove static rendition settingsAssets (5 new)
mux assets input-info <asset-id>— retrieve input file info and tracksmux assets update-master-access <asset-id>— enable/disable master accessmux assets tracks create <asset-id>— add text/audio trackmux assets tracks delete <asset-id> <track-id>— remove a trackmux assets tracks generate-subtitles <asset-id> <track-id>— generate subtitles via ASRUploads (4 new)
mux uploads create— create direct upload URLmux uploads list— list direct uploadsmux uploads get <upload-id>— get upload detailsmux uploads cancel <upload-id>— cancel a waiting uploadPlayback Restrictions (6 new)
mux playback-restrictions create— create restrictionmux playback-restrictions list— list restrictionsmux playback-restrictions get <id>— get restriction detailsmux playback-restrictions delete <id>— delete restrictionmux playback-restrictions update-referrer <id>— update referrer rulesmux playback-restrictions update-user-agent <id>— update user agent rulesTranscription Vocabularies (5 new)
mux transcription-vocabularies create— create vocabularymux transcription-vocabularies list— list vocabulariesmux transcription-vocabularies get <id>— get vocabulary detailsmux transcription-vocabularies update <id>— update vocabulary (replaces phrases)mux transcription-vocabularies delete <id>— delete vocabularyDelivery Usage (1 new)
mux delivery-usage list— list delivery usage reportsDRM Configurations (2 new)
mux drm-configurations list— list DRM configurationsmux drm-configurations get <id>— get DRM configuration detailsVideo Views (2 new)
mux video-views list— list video views with filtersmux video-views get <view-id>— get video view detailsMetrics (5 new)
mux metrics list— list available metricsmux metrics breakdown <metric-id>— breakdown by dimensionmux metrics overall <metric-id>— get overall valuesmux metrics timeseries <metric-id>— get timeseries datamux metrics insights <metric-id>— get performance insightsMonitoring (6 new)
mux monitoring dimensions— list monitoring dimensionsmux monitoring metrics— list monitoring metricsmux monitoring breakdown <metric-id>— get monitoring breakdownmux monitoring breakdown-timeseries <metric-id>— get breakdown timeseriesmux monitoring histogram-timeseries— get histogram timeseriesmux monitoring timeseries <metric-id>— get monitoring timeseriesIncidents (3 new)
mux incidents list— list incidentsmux incidents get <id>— get incident detailsmux incidents related <id>— list related incidentsAnnotations (5 new)
mux annotations create— create annotationmux annotations list— list annotationsmux annotations get <id>— get annotation detailsmux annotations update <id>— update annotationmux annotations delete <id>— delete annotationDimensions (2 new)
mux dimensions list— list available dimensionsmux dimensions values <dimension-id>— list dimension valuesErrors (1 new)
mux errors list— list errors from Mux DataExports (1 new)
mux exports list— list video view export filesTest plan
🤖 Generated with Claude Code