Add get command CLI
Refactor js