Atom . is not working in cmd


I have installed atom , but when i type the atom . to open a project i am getting
atom’ is not recognized as an internal or external command operable program or batch file.

How can i fix this issue and how can i open the atom using cmd, also when i ask for the version atom --version it is giving the same error


You need to change your PATH environment variable to include the folder Atom is installed in, which is C:\Users\<username>\AppData\Local\atom.