Skip to content

mux:upload Artisan Command ​

Upload local video assets to Mux.

Videos already linked to Mux are kept as they are, unless --force is set.

Usage ​

sh
php artisan mux:upload

# Upload videos to Mux, reupload existing videos
php artisan mux:upload --force

# Print the plan without uploading anything
php artisan mux:upload --dry-run

# Only upload videos from one asset container
php artisan mux:upload --container=videos

Options ​

OptionDescription
--container=Limit the command to one asset container
--forceReupload videos that are already linked to Mux
--dry-runPrint the plan without uploading anything
--jsonPrint a single machine-readable JSON object instead of human output

Output ​

sh
upload  3  local videos not yet on Mux
keep    8

● 3 uploads and 8 kept pending.

Unlicensed commercial plugin