Move config method to cli package