how to build paths from command line?

I want to build navigation path from command line instead of Editor GUI.
so that I can build paths on linux server.
any one know how?