> I want to just use text editor and command line to program and debug STM32s.
You'll need also a PDF reader. And I strongly recommend Total Commander or equivalent.
I have some barebones progamming examples on efton.sk/STM32 . You probably have some gcc binary from the Cube bundles or the eclipsoids, or get one from ARM. For simple projects, I avoid using make as it's an added hassle which pays off only with moderately large to huge projects - I simply call gcc from a batch file.
Then you have to download your code to target. There's many ways to skin the cat - you can avoid the debugger "pods" like STLink or JLink and use the built-in bootloader in some form, but I'm not sure about the details. Or use e.g. STLink, it comes with the STLink Utilities (or its Cube form) both in windowy and command-line form.
You can then debug using oldfashioned (but in no way unusable) methods - LED blinking, wiggling a pin observed by oscilloscope or LA, using debug printouts (and I'd recommend you to avoid printf() and family for the barebones experience, alleviating you from the associated problems - write your own simple print routines) through some serial channel or any other means.
Or, if you want to use the on-chip debug interface, you probably go for gdb with some suitable server (usually openocd) attaching to the debugging "pod" (e.g. STLink). I'm not very versed in this - I can get this going for myself, but won't offer guidance.
Which one from these items you'd want to elaborate on further? (I'm not offering more help, but knowing your exact standpoint may help others who'd want to help you).
JW
PS. Oh, and what TDK said above... Absolutely yes, you should start with the simplest loopdelay blinky and evolve from that.