Troubleshooting installing Xcode updates, stuck
For command line you could try using:

sudo softwareupdate -l (to list all available updates)

sudo softwareupdate -ai (to install updates)

sudo softwareupdate --help (for other help options)