Prestashop cli helper to generate project.
composer global require rhonalchirinos/prestacli
For generate a new module for Prestashop you should execute that command.
prestacli new type name --a 'name author'
now, run the container
docker-compose up
and write permision
docker-compose exec php chown -R www-data:www-data /var/www/html/modules/:name-module
note: the options for type and tab arguments are.
Type | Tab |
---|---|
standard, service | administration, advertising_marketing, analytics_stats, billing_invoicing, checkout, content_management, emailing, export, front_office_features, i18n_localization, market_place, merchandizing, migration_tools, mobile, others, payment_security, payments_gateways, pricing_promotion, quick_bulk_update, seo, search_filter, shipping_logistics, slideshows, smart_shopping, social_networks |
shipping | |
payement |
This command generate a docker-compose with minimum requirement for develop, it is necessary to have docker installed
prestacli docker name -i latest
Note: For select the version of prestashop you can select it in prestashop
Release command generate a .zip valid for prestashop in the release folder
prestacli release --t prod
prestacli release --t stage
prestacli release --t test
note: this command ignore these files
release
node_modules
resources
.git
.config
.prestashop
backend.Dockerfile
docker-compose.yml
.gitignore
.gitlab-ci.yml
package.json
package-lock.json
tsconfig.json
tsconfig.node.json
vite.config.ts