Added publish option to command line