How do I stop GUI?

I need to enter the command line alone with no GUI to install the official NVIDIA drivers. I'm trying to get my computer to work over HDMI and someone on Youtube shows how but you have to be in the