Releases: scandipwa/create-magento-app
v1.6.0
What's New
-
Import db command now has --remote-db option to import database dumps from remote servers.
Usage example:yarn run import-db --remote-db ssh://[email protected]
Now it will connect via ssh to your server, create dump files (
dump-0.sqlanddump-1.sql), download them to your projects root folder, merge them to singledump.sqland import them to your local instance with applied fixes.Note, that the dump file created by this command is much smaller than dump files that are created by default. This is because we omit orders and customers data when we're creating dump file so it comes in a much smaller size.
For example, previously a dump from a database could weigh 2.7GB, now using this import feature size will be reduced to 4MB.
-
start command now have --recompile-php option to recompile PHP, if needed.
Sometimes, for example on macOS when dynamic dependencies are updated, PHP might break. To fix this issue you had to manually delete the PHP binary in~/.phpbrew/php/php-<version>, so CMA will detect it and compile it.
Now, you just need to pass this option in the start command and CMA will take care of everything. -
Refactored start command tasks display and execution view.
Now it should look less cluttered with unnecessary information and also show timestamps for the tasks. -
Windows platform is now also supported through WSL!
Docs available here.
Miscellaneous
- Refactored link command logic.
- Link command now also automatically start the project if it was stopped.
- If no connection string was supplied to import-db command with remote-db option, CMA will ask for it during runtime.
- Adjusted Magento configuration task execution order.
- Persisted query setup for ScandiPWA theme is now also executed during the Magento configuration task.
- Start command will print into command output
magento-scriptsversion.
Bug Fixes
v1.5.4-alpha.3
- Fixed import errors.
- MySQL connection will now print errors instead of only hardcoded message about the error.
v1.5.4-alpha.2
Recompile PHP option, import remote db improvements and bug fixes!
What's New
- Removed check for readymage server on import-db, added support for any ssh servers with mysqldump installed on them.
CMA will ask the same things to connect to a remote server via ssh, then it will ask to alter (if needed) mysqldump command so the user will provide correct credentials for it. Then, the process will continue as follows: CMA will make 2 dump files (dump-0.sql and dump-1.sql), download them, concat them into a single dump.sql file and continue to import into your local instance. - start command now have
--recompile-phpoption to recompile PHP, if needed.
Sometimes, on macOS when dynamic dependencies are updated, PHP might break. To fix this issue you had to manually delete the PHP binary in~/.phpbrew/php/php-<version>, so CMA will detect it and compile it.
Now, you just need to pass this option in the start command and CMA will take care of everything. - import-db command remote-db option now has an alias -r.
So, to import remote db command can look like this:npm run import-db -r <connection string>ornpm run import-db --remote-db <connection string> - If no connection string was supplied to import-db command with remote-db option, CMA will ask for it during runtime.
Bug Fixes
v1.5.4-alpha.1
What's New
-
Import db command now has
--remote-dboption to import database dumps from remote servers.
At the moment, only readymage ssh is supported.
Usage example:yarn run import-db --remote-db ssh://[email protected]
Now it will connect via ssh to readymage instance, create dump files (
dump-0.sqlanddump-1.sql), download them to your projects root folder, merge them to singledump.sqland import to your local instance with applied fixes.Note, that the dump file created by this command is much smaller than dump files that are created by default on readymage. This is because we omit orders and customers data when we're creating dump file so it comes in much smaller size.
-
Start command will also print into command output
magento-scriptsversion.
Printing themagento-scriptsversion is helpful for error reporting if something goes wrong.
[email protected]
- Bump dependencies version.
v1.5.3
v1.5.4-alpha.0
Adjusted start command output and some under the hood changes
-
Refactored start command tasks display and execution view.
Now it should look less cluttered with unnecessary information and also show timestamps for the tasks.
Before:

-
Refactored link command logic.
-
Link command now also automatically start the project if it was stopped.
-
Adjusted Magento configuration task execution order.
-
Persisted query setup for ScandiPWA theme is now also executed during the Magento configuration task.
v1.5.2
V1.5.1
System config, Bug Fixes and Performance Improvements!
What is New
-
System config is here!
The file should be named.cmarcand located in the home directory of your user.
Currently, only 2 options are available to tweak:useNonOverlappingPorts,analytics.// default ~/.cmarc { "useNonOverlappingPorts": false, "analytics": true }
useNonOverlappingPortsfeature will tell CMA to not use ports that are already used by other CMA instances, even if they are currently stopped.
analyticswill come in the following updates which will help us improve CMA, so an option to opt-out from it is already available![NOTICE] Since the
useNonOverlappingPortsfeature control has been moved from the projects config file, akacma.jsin your project root directory, you will need to remove this option from there.Documentation available here!
-
ElasticSearch MachineLearning option will now be automatically enabled on systems that support it.
This feature was disabled before to keep compatibility for our developers running on older hardware, but now it will be enabled for systems that support theSSE4.2instruction set.
Bug Fixes
- Fixed import and usage of stored programs in database dump. 19bf46c
- Fixed undefined errors while extracting data (like retrieving versions) from command output which does not contain that data or data is corrupted.
Now proper error message will be displayed if something goes wrong. c248361
Reported from scandipwa/scandipwa#2598 - Fixed installation of
prestissimocomposer plugin on composer with version 2. 70ba9cc
v1.5.0
Apple Silicon, Magento 2.4.2 & 2.4.1-p1 support and bug fixes!
What's New
Apple Silicon support is here!
When using CMA on Apple Silicon you might notice some differences compared to running it on the X86 system.
Mainly, since MySQL image is not available with arm64 architecture, we are using MariaDB instead. MariaDB is a fork of MySQL and compatible with its API so there should be no problem.
Like everything new, not everything works with old software. Currently, containers might experience issues with networking, so if you get the message This site can’t be reached try to run the start command again, it should restart the containers and resolve the issue.
More about issues with containers on Apple Silicon available here.
Docs available here!
Magento 2.4.2 & 2.4.1-p1 support is here!
Now when running magento-scripts for the first time you will be given a prompt with all supported Magento versions.
Currently 3 are supported: 2.4.1, 2.4.1-p1, 2.4.2.
Magento 2.4.2 and 2.4.1-p1 requires a new dependency called libsodium. Prerequisites are already updated and CMA will also check if you need to install additional dependencies and install them right away!
More about supported Magento versions here!
magento-scripts will now also check for the Node.js version!
So you will get a proper error message on what to do with your out-of-date Node.js version.
The minimum required Node.js version is still 12.
link command will now also build theme if it is not built already.
No more "Template Magento_Theme::scandipwa_root.phtml "is not found" error after install! 0537807
Bug Fixes
- Fixed a bug that prevents a user from choosing the desired port to run CMA on using the --port option. 352912d
- Fixed updating the
env.phpfile if your installed PHP version is not 7.4.13. 695644d - Fixed skipping updating
app/etc/env.phpfile if it does not exist. 2403892 - Fixed installation of prestissimo on non-default php version.
Miscellaneous
- Bumped XDebug version to 3.0.4
- After the start command successfully finished, added a note about the status command containing MySQL credentials, container status, and more detailed info about the project. 6562250
- Nginx template has been updated to be up-to-date with a template from Magento repository. 14b02ed
- Added
composerconfiguration, so you can forcefully choose the composer version.
Although, only version 1 and 2 is supported. - Added
php.extensionshooks configuration to do some actions before and after extension installation.
As an example, hooks are currently used to edit the/home/user/.phpbrew/php/php-<>/var/db/libsodium.inifile because when thelibsodiumextension is installed, it uses dynamic library calledsodium.soinstead oflibsodium.so. PHP throws an error that itcannot load libsodium librarybecause it does not exist. In the post-install hook, we edit this file to point to the correct library name so everything goes smoothly. 416d375
