Version using custom option

Hi all,
i’m quite new on Platformio (and community too).

A simple question after googoling for a day.

I would like to use custom option (like in the examples) for insert a versioning in the resulting bin file.

My question is: how i can increment the value of the custom option ?

Thanks a lot.

Paolo

p.s. my platformio.ini

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino

extra_scripts = pre:extra_script.py
custom_prog_version = 1.2.3

Solved with reading a lot of documents in Platformio :smiley: