#!/usr/bin/env php getName() . ' ' . $version->getNumber()); if (!$cli['phraseanet.configuration-tester']->isInstalled()) { throw new \RuntimeException('Phraseanet is not installed, use setup command instead'); } if (!$cli['phraseanet.configuration-tester']->isConnectedToDBHost()) { throw new \RuntimeException('Phraseanet can not connected to the provided DB, use setup command to config!'); } if (!$cli['phraseanet.configuration-tester']->isUpToDate()) { throw new \RuntimeException('Phraseanet is not up-to-date, use setup command instead'); } $cli->command(new \module_console_aboutAuthors('about:authors')); $cli->command(new \module_console_aboutLicense('about:license')); $cli->command(new CheckConfig('check:config')); $cli->command(new UpgradeDBDatas('system:upgrade-datas')); $cli->command(new ApplyRightsCommand('system:apply-rights')); $cli->command(new \module_console_systemMailCheck('system:mail-check')); $cli->command(new \module_console_systemBackupDB('system:backup-db')); $cli->command(new \module_console_systemClearCache('system:clear-cache')); $cli->command(new \module_console_systemExport('system:export')); $cli->command(new \module_console_systemClearSessionCache('system:clear-session-cache')); $cli->command(new TaskRun()); $cli->command(new TaskList()); $cli->command(new TaskState()); $cli->command(new SchedulerResumeTasks()); $cli->command(new SchedulerPauseTasks()); $cli->command(new SchedulerState()); $cli->command(new SchedulerRun()); $cli->command(new TaskList()); $cli->command(new TaskStart()); $cli->command(new TaskStop()); $cli->command(new MailTest('mail:test')); $cli->command(new \module_console_fieldsList('fields:list')); $cli->command(new \module_console_fieldsDelete('fields:delete')); $cli->command(new \module_console_fieldsRename('fields:rename')); $cli->command(new \module_console_fieldsMerge('fields:merge')); $cli->command(new UserApplicationsCommand('user:applications')); $cli->command(new CreateCollection('collection:create')); $cli->command(new UnPublishCollectionCommand('collection:unpublish')); $cli->command(new PublishCollectionCommand('collection:publish')); $cli->command(new ListCollectionCommand('collection:list')); $cli->command(new ListDataboxCommand('databox:list')); $cli->command(new CreateDataboxCommand('databox:create')); $cli->command(new UnMountDataboxCommand('databox:unmount')); $cli->command(new MountDataboxCommand('databox:mount')); $cli->command(new UserCreateCommand('user:create')); $cli->command(new UserPasswordCommand('user:password')); $cli->command(new UserEditCommand()); $cli->command(new UserListCommand('user:list')); $cli->command(new RecordAdd('records:add')); $cli->command(new BuildPermalinks()); $cli->command(new RescanTechnicalDatas('records:rescan-technical-datas')); $cli->command(new BuildSubdefs('records:build-subdefs')); $cli->command(new RescanFilesMetadata()); $cli->command(new WriteMetadatas()); $cli->command(new AddPlugin()); $cli->command(new ListPlugin()); $cli->command(new RemovePlugin()); $cli->command(new Configuration()); $cli->command(new H264ConfigurationDumper()); $cli->command(new H264MappingGenerator()); $cli->command(new XSendFileConfigurationDumper()); $cli->command(new XSendFileMappingGenerator()); $cli->command(new IndexManipulateCommand()); $cli->command(new IndexCreateCommand()); $cli->command(new IndexDropCommand()); $cli->command(new MappingUpdateCommand()); $cli->command(new IndexPopulateCommand()); $cli->command(new QueryParseCommand()); $cli->command(new QuerySampleCommand()); $cli->command(new FindConceptsCommand()); $cli->command(new TranslateCommand()); $cli->command(new FeedbackReportCommand()); $cli->command(new WorkerExecuteCommand()); $cli->command(new WorkerHeartbeatCommand()); $cli->command(new WorkerRunServiceCommand()); $cli->command(new WorkerShowConfigCommand()); $cli->command(new SendValidationRemindersCommand()); $cli->command(new NetworkProxiesTestCommand('network-proxies:test')); $cli->command(new AlertExpiringRightsCommand()); $cli->loadPlugins(); $cli->run();