Command line and API working