Search by

yireo / magento2-store-view-commands

yireo

N/A

Package info

github.com/yireo/Yireo_StoreViewCommands

Type:magento2-module

pkg:composer/yireo/magento2-store-view-commands

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-11-26 02:52 UTC

This package is auto-updated.

Last update: 2026-12-02 18:41:17 UTC


README

Magento version PHP version License Latest Version

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.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation