Only if I cd to J:\Hugo\bin and run “hugo version” do I get “Hugo Static Site Generator v0.32.4 …”
I have added J:\Hugo\bin to path.
Why is this happening? and what is the best method for updates on Windows? I read the docs, and they are extensive for Macs but only mention installation on windows.
That’s because most of us around here are on a Mac or a Linux Distro.
Hopefully someone who uses Hugo on Windows can help you…
EDIT
Also you can send Pull Requests to improve the Hugo Docs. Since you are a Windows user your input would be very useful for others, once you figure out what the best update approach is for Hugo on your OS.
Hugo is a single executable file, it does not require installation. It’s enough just to download the file and place it in a convenient folder. And RTFM.
We would all love for Windows to act more unix-y (or POSIX-y, whatevs), but it ain’t. You can’t do many things from your terminal emulator as easily as non-Windows users.
If I had to use Windows, I’d probably run VirtualBox and a server GNU/Linux system.
Ironically, in the time you spend looking for a way to automate this and spend in this topic, you could probably do 7 or more manual Windows updates of Hugo.
I mean this in a friendly manner, not to critique your desire for an easier updating process on Windows. That might be a good idea for us Windows users.
But if I look at all actions I perform with Hugo and developing/maintaining websites, the time it takes to update Hugo is a tiny tiny fraction. So there’s little time to gain there. Perhaps a minute gained per Hugo update, so 10-15 minutes per year.