setup infrastructure to test commands

again, blalantly copied from travis ci's cli