Check out example codes for "how can I see my gatsby version". It will help you in understanding the concepts better.

Code Example 1

gatsby --version

Learn ReactJs, React Native from akashmittal.com