install cobra generator https://github.com/spf13/cobra/blob/master/cobra/README.md init a new cli app cobra init --pkg-name github.com/jabhishek87/gocli create a mod file go mod init github.com/jabhishek87/gocli