yireo / magento2-store-view-commands
N/A
Package info
github.com/yireo/Yireo_StoreViewCommands
Type:magento2-module
pkg:composer/yireo/magento2-store-view-commands
Requires
- php: >=8.2 <8.6
- magento/framework: ^103.0
- magento/module-store: ^101.1
- symfony/console: ^5.0 | ^6.0 | ^7.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 18:41:17 UTC
README
This Magento 2 module adds a couple of CLI commands for managing Store Views
Installation
composer require yireo/magento2-store-view-commands bin/magento module:enable Yireo_StoreViewCommands
Usage
Create a new StoreView:
bin/magento store:view:create <code> <name> <website_id> [--group-id=<id>] [--inactive]
Without --group-id, the store view is added to the default store group of the website. The store view is saved within the adminhtml area, so that Magento generates the URL rewrites of products and categories (and CMS pages) for it, just like when creating a store view in the Admin Panel.
Update an existing StoreView (by ID or code):
bin/magento store:view:update <id_or_code> <new_code> <new_name> <website_id> [--force]
Changing the code of the default store view of a store group requires --force. The website ID must be a positive integer.
Show the details of a StoreView (by ID or code):
bin/magento store:view:detail <id_or_code>
The admin store view (admin or 0) can not be shown.