Vsepa Vsepa - 6 months ago 19
Bash Question

How to copy and replace an application via Terminal in Mac OS?

What could the correct Terminal

cp
syntax may be? I tried use syntax cp -R ~/Downloads/MyApp.app /Application and in Terminal many questions apeared e.g.:
overwrite /Applications/MyApp.app/Contents/Resouces/app/apm/index.js (y/n [n])
.
How can I copy and replace an application via Terminal in Mac OS?

Answer

try /bin/cp -rf ~/Downloads/MyApp.app /Application

-f force and prevent any question