Added app command
[#56745542]
Shared some helper methods in commands/helpers.go