element119 / module-store-entity-creator
一个 Magento 2 CLI 工具,允许开发者创建新的网站、商店和商店视图。
1.0.2
2024-08-12 12:50 UTC
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- magento/module-store: ^100.0.2 || ^101.0
This package is auto-updated.
Last update: 2024-09-12 12:57:50 UTC
README
📝 功能
✔️ 使用 Magento CLI 创建商店实体(网站、商店和商店视图)
✔️ 主题无关
✔️ 按照Magento最佳实践构建
✔️ 无缝集成到 Magento
✔️ 考虑到开发者和可扩展性,使定制尽可能简单
✔️ 通过 Composer 安装
🔌 安装
运行以下命令以 安装 此模块
composer require element119/module-store-entity-creator php bin/magento setup:upgrade
⏫ 更新
运行以下命令以 更新 此模块
composer update element119/module-store-entity-creator php bin/magento setup:upgrade
❌ 卸载
运行以下命令以 卸载 此模块
composer remove element119/module-store-entity-creator php bin/magento setup:upgrade
📚 用户指南
创建网站 - app:website:create
Description:
Create a new website.
Usage:
app:website:create [options] [--] <code> <name>
Arguments:
code New website code.
name New website name.
Options:
--default-store-id=DEFAULT-STORE-ID Default store ID for new website.
--sort-order=SORT-ORDER New website sort order.
--is-default Sets the new website as the default website.
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
创建商店 - app:store:create
Description:
Create a new store.
Usage:
app:store:create [options] [--] <code> <name> <website_id> <root_category_id>
Arguments:
code New store code.
name New store name.
website_id ID of the website to add the new store to.
root_category_id New store root category ID.
Options:
--default-store-view-id=DEFAULT-STORE-VIEW-ID Default store view ID for new store.
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
创建商店视图 - app:store-view:create
Description:
Create a new store view.
Usage:
app:store-view:create [options] [--] <code> <name> <store_id>
Arguments:
code New store view code.
name New store view name.
store_id ID of the store to add the new store view to.
Options:
--disabled Disable the new store view.
--sort-order=SORT-ORDER New store view sort order.
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug