$script->cleanExit(1);
     }
     break;
 case 'remove':
     $tenant = new \Innomatic\Domain\Domain(InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getDataAccess(), $argv[2], null);
     if ($tenant->remove()) {
         print "Tenant {$argv['2']} removed\n";
         $script->cleanExit();
     } else {
         print "Tenant {$argv['2']} not removed\n";
         $script->cleanExit(1);
     }
     break;
 case 'applist':
     $tenant = new \Innomatic\Domain\Domain(InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getDataAccess(), $argv[2], null);
     $list = $tenant->getEnabledApplications();
     foreach ($list as $app) {
         print $app . "\n";
     }
     $script->cleanExit();
     break;
 case 'appenable':
     $tenant = new \Innomatic\Domain\Domain(InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getDataAccess(), $argv[2], null);
     $appid = \Innomatic\Application\Application::getAppIdFromName($argv[3]);
     if ($tenant->enableApplication($appid)) {
         print "Application {$argv['3']} enabled to tenant {$argv['2']}\n";
         $script->cleanExit();
     } else {
         print "Application {$argv['3']} not enabled to tenant {$argv['2']}\n";
         $script->cleanExit(1);
     }