After a lot of searching over the network, this is what I have ended up with. This is intentionally made such that even a absolute beginner is able to follow, so uses fixed paths.
Note: I am not using the --additional-urls
flag since it didn't work for me back then, you may try it.
First ensure that your PC is detecting the NodeMCU atleast.
arduino-cli board list