For the WS-C3560X series switches we use the builtin archive tool.
This tool uses the .tar images to update software.
If you don’t want the web gui, remember to use the /imageonly switch
archive download-sw /imageonly tftp://[serverIP]/[imageName].tar
Save your configuration
write memory
Reload the switch to boot the new IOS
reload