This is a Magento2 module to import and export CMS content.
Manually
To install this module copy the code from this repo to app/code/Space48/cmscontent
folder of your Magento 2 instance, but DO NOT run php bin/magento setup:upgrade
Via composer:
From the terminal execute the following:
composer config repositories.space48-quick-view vcs [email protected]:Space48/cmscontent.git
then
composer require "space48/cmscontent:{release-version}"
This is a CLI Tool so you can use as part of bin/magento
or magerun2
options.
This tool add the following Space48 commands:
- space48:cms-content:import
- space48:cms-content:export
- space48:cms-content:delete
This command will import CMS Pages and Blocks from csv files to the database.
The csv files need to be placed into vendor/space48/cmscontent/fixtures
.
If the CMS Page or Block does not exists it will created and if it doesn't it will update it.
Usage:
space48:cms-content:import cmsType
Arguments:
cmsType pages, blocks, all
This command will export CMS Pages and Blocks from the database to a csv files.
The generated files can be found under vendor/space48/cmscontent/fixtures
.
Usage:
space48:cms-content:export cmsType
Arguments:
cmsType pages, blocks, all
This command can be use to delete CMS Pages and Blocks.
Usage:
space48:cms-content:delete cmsType
Arguments:
cmsType pages, blocks, all