Init CLI environment