emakinafr/magento2-cobai
Composer 安装命令:
composer require emakinafr/magento2-cobai
包简介
Magento2 module to transfer your CMS data from a platform to another platform.
README 文档
README
🐹 What is COBAI Magento module?
COBAI Magento module helps you to transfer your CMS blocks, pages, images, and hierarchies from a platform to another platform.
When you run the export command line, COBAI Magento module creates a package with all your CMS data in your var/export directory. After that, you just need to transfer your archive to the other platform in the var/import directory. Then, run the import command line.
⚠️ Don't forget to clean your var/export and var/import directories. Indeed, the import does not delete the imported files so that you can reuse them if you need it.
Why COBAI?
Because COBAI is the abbreviation of COntent Backup And Import - we wanted to have a funny and cute logo -.
Compatibility
COBAI Magento module is compatible with Magento 2.3.x CE and EE versions. If you work with Magento EE version, it keeps your layouts configurations with the PageBuilder.
🛠 Getting Started
Install
You can install the module with Composer.
$ composer require emakinafr/magento2-cobai
$ php bin/magento setup:upgrade
Usage
To export an archive with pages, blocks, images and hierarchies, you need to run:
$ bin/magento cobai:cms:export
To import an archive, you need to run:
$ bin/magento cobai:cms:import <path/of/your/filename.ext>
To clean your working directory, you need to run:
$ rm -rf var/export var/import
🚀 Advanced Features
Export Options
$ bin/magento cobai:cms:export --type [typeOption]
| Type Option | Description |
|---|---|
| archive | export archive to zip file |
| block | export blocks to csv file |
| image | export images to zip file |
| hierarchy | export hierarchies to csv file |
| page | export pages to csv file |
If you want to customize the name of your file you can use --file=[name]. You need to specify the path of this file, for example: var/export/archive.zip.
Import Options
$ bin/magento cobai:cms:import --type [typeOption] <path/of/your/filename.ext>
| Type Option | Description |
|---|---|
| archive | import archive to zip file |
| block | import blocks to csv file |
| image | import images to zip file |
| hierarchy | import hierarchies to csv file |
| page | import pages to csv file |
Warning
- By default, the option only adds changes except for the hierarchy and image option which systematically replaces all data.
- For blocks/pages, you can use
--force, to update old blocks/pages.
emakinafr/magento2-cobai 适用场景与选型建议
emakinafr/magento2-cobai 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47.72k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 01 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 emakinafr/magento2-cobai 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 emakinafr/magento2-cobai 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-20
