Skip to content

mux:mirror Artisan Command

Upload local videos to Mux, and remove orphaned Mux videos.

This basically runs mux:upload and mux:prune in sequence.

sh
# Sync local assets to Mux
php please mux:mirror

# Sync local assets to Mux, reupload existing videos
php please mux:mirror --force

# Perform a trial run and print a list of affected files
php please mux:mirror --dry-run
Note about command names

Examples on this page use Statamic's Please console, which allows dropping the statamic namespace from command names. When using Laravel's Artisan console, make sure to include the full namespace: php artisan statamic:mux:upload.

Unlicensed commercial plugin