How to install the Pearl Theme on Magento Commerce Cloud - using UNIX systems
Installation is Composer-only since 1.16.0; theme files are no longer provided for upload.
This guide covers installing the Pearl Theme on Magento Commerce Cloud environments where Static Content Deployment (SCD) happens in the Deploy hook.
If your environment has SCD in the Build hook, follow this guide instead: How to install the Pearl Theme on Magento Cloud - Ideal State Environment.
Step 1. Clone the Cloud repository on UNIX / macOS (not supported on Windows)
git init
git config user.name "Support WeltPixel"
git config user.email "support@weltpixel.com"
eval 'ssh-agent -s'
eval $(ssh-agent -s)
ssh-add '/Users/your_user/.ssh/id_weltpixel_rsa' # private key for Cloud Account
ssh-add -l # verify key was added
git clone <branch_name> user@git.us.magento.cloud:repo.git <folder_name>You can find the exact clone command in your Cloud Account.

Step 2. Add the theme with Composer
In the cloned repository, run the Composer configuration and composer require commands shown under My Products → Enable Composer at account.weltpixel.com, then commit composer.json and composer.lock.
💡 If you've only upgraded the theme code, copy the latest Commerce Cloud patch files again (Step 3). The Build hook runs the patch script on every deploy (Step 4).
Step 3. Apply the Commerce Cloud patch (Non-Ideal State)
Copy the content of the Non Ideal-State Environment folder of the Cloud patch for Composer installations (GitHub) into your Magento root.
Merge with pub but do not overwrite it.
After patching:
pearl_cloud_setups.shshould be in the Magento root.pub/media/weltpixel_css/should contain required files.

Step 4. Run the patch script in the Build hook
With a Composer installation, the vendor/ folder is built on the server from composer.lock and is not committed to Git, so the script has to run on the server after Composer has installed the theme. Edit .magento.app.yaml → Build hook:
build: |
php ./vendor/bin/ece-tools build:generate
php ./vendor/bin/ece-tools build:transfer
chmod +x pearl_cloud_setups.sh
./pearl_cloud_setups.shDon't run the script locally and commit the result: the symlinks it creates under vendor/ are not part of the commit, so they never reach the server.
Step 5. Verify symlinks
After the first deploy with the patch, connect over SSH and check that the css directories in the following locations are symlinks, not folders:
vendor/weltpixel/m2-weltpixel-category-page/view/frontend/web/css
vendor/weltpixel/m2-weltpixel-custom-footer/view/frontend/web/css
vendor/weltpixel/m2-weltpixel-custom-header/view/frontend/web/css
vendor/weltpixel/m2-weltpixel-frontend-options/view/frontend/web/css
vendor/weltpixel/m2-weltpixel-product-page/view/frontend/web/css
For example, ls -l vendor/weltpixel/m2-weltpixel-category-page/view/frontend/web/ should show css -> ../../../../../../pub/media/css_weltpixel/CategoryPage/css/.
Step 6. Update .gitignore
Unhide .gitignore and ensure:
- The first line is not
*. - Add these at the end:
!/pub/media/wysiwyg/pearl_theme
!/pub/media/css_weltpixel
!/pub/media/weltpixel

Step 7. Move SCD to the Deploy hook
SCD must run in the Deploy hook, not Build, because DB access is required.
Update .magento.env.yaml:
stage:
build:
SKIP_SCD: true
deploy:
SKIP_SCD: false
Step 8. Commit to Git
git status
git add --all
git commit -m "Install Pearl Theme"
git branch # verify branch
git push origin <branch_name>Step 9. Activate the Pearl Theme
From Magento Admin:
- Go to
System > Configuration > Applied Theme > Custom Pearl Theme for Magento 2 - Regenerate Pearl Theme LESS/CSS
- Flush cache
Via SSH:
php bin/magento weltpixel:theme:activate --store="GLOBAL" --themePath="Pearl/weltpixel_custom"
php bin/magento cache:clean
php bin/magento weltpixel:less:generate
php bin/magento weltpixel:css:generate --store=defaultStep 10. Pre-configure Pearl Theme via SSH
Pick a layout from the Pearl Demo Store.
Example (Home Page V10, Header V1, 3-column Category, Product Page V1, Footer V3):
php bin/magento weltpixel:import:demo --store=GLOBAL --demoVersion=v10
php bin/magento weltpixel:theme:configurator --store=GLOBAL --homePage=v10 --header=v1 --categoryPage=3columns --productPage=v1 --footer=v3
php bin/magento weltpixel:less:generate
php bin/magento weltpixel:css:generate --store=default
php bin/magento cache:cleanStep 11. Automate CSS/LESS generation
Update .magento.app.yaml:
hooks:
build: |
php ./vendor/bin/ece-tools build:generate
php ./vendor/bin/ece-tools build:transfer
deploy: |
php ./vendor/bin/ece-tools deploy
post_deploy: |
php ./vendor/bin/ece-tools post-deploy
php ./bin/magento weltpixel:less:generate
php ./bin/magento weltpixel:css:generate --store=default✅ Done! The Pearl Theme is installed on Magento Commerce Cloud.
FAQ – SSH Access
- Upload your public key in Cloud Account > SSH Keys.
- Set private key permissions:
chmod 600 id_weltpixel_rsa- Connect via SSH:
ssh -i id_weltpixel_rsa username@cloudserver
More details: Configure multiple SSH identities
Updated on: 20/11/2026
Thank you!