Hi @nmnmum,
Yes, when you are moving code one server to another server then you need to redeploy using below command.
If you want to remove version number from url then you do from admin as well or from database.
UPDATE core_config_data SET value =0 WHERE path = 'dev/static/sign' ;
https://devdocs.magento.com/guides/v2.3/config-guide/cache/static-content-signing.html
To redeploy follow below command:
chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
I hope it will help you!