To run Software Update on your Mac from the command line, open Terminal.app and run the command below:
sudo softwareupdate -i -a

To run Software Update on your Mac from the command line, open Terminal.app and run the command below:
sudo softwareupdate -i -a