Installing the Magento 2 Extension
Download and Extract the Extension#
Download the latest release of the extension from the releases page of its GitHub repository (the source code ZIP of the most recent version tag) and extract it locally to any folder. The extracted folder contains the module files, with registration.php in its root.
Upload Files to Server#
Connect to your server using SSH, SFTP or FTP.
Create the directory app/code/PluginCompany/CmsRevisions in your Magento 2 root directory and copy the extracted files into it, so that app/code/PluginCompany/CmsRevisions/registration.php exists. The docs/ folder and the Markdown files (README.md, CHANGELOG.md) are not needed and can be left out.
Enable the Extension#
Enable the extension using the following command:
php bin/magento module:enable PluginCompany_CmsRevisionsUpdate the Database#
Run the following upgrade command:
php bin/magento setup:upgradeClean the Magento Cache#
Clean the cache using the following command:
php bin/magento cache:cleanRemove auto-generated classes#
Remove all auto-generated classes using the following command:
rm -Rf ./generated/*Or in Magento 2.0 and 2.1:
rm -Rf ./var/generation/*Run the Compiler#
Run the dependency injection compilation command:
php bin/magento setup:di:compileDeploy Static View Files#
Run the static content generation command:
php bin/magento setup:static-content:deploy