/** * {@inheritdoc} */ protected function configure() { $this->setName('setup:store-config:set') ->setDescription('Installs the store configuration') ->setDefinition($this->getOptionsList()); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $arguments = [new InputArgument(self::INPUT_KEY_IP, InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Allowed IP addresses')]; $options = [new InputOption(self::INPUT_KEY_NONE, null, InputOption::VALUE_NONE, 'Clear allowed IP addresses')]; $this->setName('maintenance:allow-ips')->setDescription('Sets maintenance mode exempt IPs')->setDefinition(array_merge($arguments, $options)); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $this->setName('admin:user:create') ->setDescription('Creates an administrator') ->setDefinition($this->getOptionsList()); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('setup:upgrade') ->setDescription( 'Upgrades the Magento application, DB data, and schema' ); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $inputOptions = $this->configModel->getAvailableOptions(); $inputOptions = array_merge($inputOptions, $this->userConfig->getOptionsList()); $inputOptions = array_merge($inputOptions, $this->adminUser->getOptionsList()); $inputOptions = array_merge($inputOptions, [new InputOption(self::INPUT_KEY_CLEANUP_DB, null, InputOption::VALUE_NONE, 'Cleanup the database before installation'), new InputOption(self::INPUT_KEY_SALES_ORDER_INCREMENT_PREFIX, null, InputOption::VALUE_REQUIRED, 'Sales order number prefix'), new InputOption(self::INPUT_KEY_USE_SAMPLE_DATA, null, InputOption::VALUE_NONE, 'Use sample data')]); $this->setName('setup:install')->setDescription('Installs Magento Application')->setDefinition($inputOptions); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->addArgument( self::INPUT_KEY_MODULES, InputArgument::IS_ARRAY | ($this->isModuleRequired() ? InputArgument::REQUIRED : InputArgument::OPTIONAL), 'Name of the module' ); $this->addOption( self::INPUT_KEY_CLEAR_STATIC_CONTENT, 'c', InputOption::VALUE_NONE, 'Clear generated static view files. Necessary, if the module(s) have static view files' ); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_SERIALIZER, null, InputOption::VALUE_REQUIRED, 'Serializer function that should be used (' . self::SERIALIZER_VALUE_SERIALIZE . '|' . self::SERIALIZER_VALUE_IGBINARY . ') default: ' . self::SERIALIZER_VALUE_SERIALIZE), new InputOption(self::INPUT_KEY_EXTRA_CLASSES_FILE, null, InputOption::VALUE_REQUIRED, 'Path to file with extra proxies and factories to generate'), new InputOption(self::INPUT_KEY_GENERATION, null, InputOption::VALUE_REQUIRED, 'Absolute path to generated classes, <magento_root>/var/generation by default'), new InputOption(self::INPUT_KEY_DI, null, InputOption::VALUE_REQUIRED, 'Absolute path to DI definitions directory, <magento_root>/var/di by default'), new InputOption(self::INPUT_KEY_EXCLUDE_PATTERN, null, InputOption::VALUE_REQUIRED, 'Allows to exclude Paths from compilation (default is #[\\\\/]m1[\\\\/]#i)')]; $this->setName(self::NAME)->setDescription('Generates all non-existing proxies and factories, and pre-compile class definitions, ' . 'inheritance information and plugin definitions')->setDefinition($options); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $this->setName('maintenance:status')->setDescription('Checks maintenance mode status'); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('setup:uninstall')->setDescription('Uninstalls Magento application'); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('setup:db:status')->setDescription('Checks if DB schema or data requires upgrade'); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('module:status')->setDescription('Displays status of modules'); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $this->setName('setup:db-schema:upgrade')->setDescription('Installs and upgrades the DB schema'); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_CODE_BACKUP_FILE, 'c', InputOption::VALUE_REQUIRED, 'Basename of the code backup file in var/backups'), new InputOption(self::INPUT_KEY_MEDIA_BACKUP_FILE, 'm', InputOption::VALUE_REQUIRED, 'Basename of the media backup file in var/backups'), new InputOption(self::INPUT_KEY_DB_BACKUP_FILE, 'd', InputOption::VALUE_REQUIRED, 'Basename of the db backup file in var/backups')]; $this->setName('setup:rollback')->setDescription('Rolls back Magento Application codebase, media and database')->setDefinition($options); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $this->setName('setup:cron:run')->setDescription('Runs cron job scheduled for setup application'); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_IP, null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, "Allowed IP addresses (use 'none' to clear allowed IP list)")]; $this->setDefinition($options); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_KEEP_GENERATED, null, InputOption::VALUE_NONE, 'Prevents generated code from being deleted. ' . PHP_EOL . 'We discourage using this option except when deploying to production. ' . PHP_EOL . 'Consult your system integrator or administrator for more information.')]; $this->setName('setup:upgrade')->setDescription('Upgrades the Magento application, DB data, and schema')->setDefinition($options); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setDefinition([new InputArgument(self::INPUT_KEY_MODULES, InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Name of the module'), new InputOption(self::INPUT_KEY_CLEAR_STATIC_CONTENT, 'c', InputOption::VALUE_NONE, 'Clear generated static view files. Necessary, if the module(s) have static view files'), new InputOption(self::INPUT_KEY_FORCE, 'f', InputOption::VALUE_NONE, 'Bypass dependencies check'), new InputOption(self::INPUT_KEY_ALL, null, InputOption::VALUE_NONE, ($this->isEnable() ? 'Enable' : 'Disable') . ' all modules')]); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $this->setName('setup:db-data:upgrade')->setDescription('Installs and upgrades data in the DB'); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_CODE, null, InputOption::VALUE_NONE, 'Take code and configuration files backup (excluding temporary files)'), new InputOption(self::INPUT_KEY_MEDIA, null, InputOption::VALUE_NONE, 'Take media backup'), new InputOption(self::INPUT_KEY_DB, null, InputOption::VALUE_NONE, 'Take complete database backup')]; $this->setName('setup:backup')->setDescription('Takes backup of Magento Application code base, media and database')->setDefinition($options); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $this->setName('setup:upgrade')->setDescription('Upgrades installed application after the code base has changed, ' . 'including DB schema and data'); parent::configure(); }
/** * Initialization of the command * * @return void */ protected function configure() { $options = $this->configModel->getAvailableOptions(); $this->setName('setup:config:set')->setDescription('Creates or modifies the deployment configuration')->setDefinition($options); parent::configure(); }