When running node it is useful to know which version you're running so you're up to date. Does anyone know which command do I have to execute to know which version of Tezos I am running? Thanks,
There is an RPC for this now, merged here.
It is GET /monitor/commit_hash and it just returns the commit hash as a JSON string.
You can also see this in
tezos-node --help | tail -n 1.
(Of course, one also needs to make sure any
tezos-client and daemons are at a compatible version. These don't seem to know their own commit hash yet.)