Welcome, @Community member, to the community!
Although the STM8 are very old, you can of course program them via Command Line with the ST Visual Programmer. For this purpose the program STVP_CmdLine.exe is used, which can access your ST-LINK/V2 directly.
Attention: please install in a directory with short length, without spaces in the directory names and write access for normal users, i.e. without admin rights.
Good luck!
If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.