prestashop / publish-on-marketplace
Publish extensions on the PrestaShop Marketplace
Installs: 2 007
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 21
Forks: 3
Open Issues: 1
Requires
- php: >=7.2.5
- guzzlehttp/guzzle: ^7.0
- symfony/console: ^3.4
Requires (Dev)
- phpstan/phpstan: ^0.12.32
- prestashop/php-dev-tools: ^3.0
This package is auto-updated.
Last update: 2024-11-22 17:08:23 UTC
README
This tool provide an way to upload new versions of extensions on the Marketplace, by using the seller API.
Quickstart
Installation
It may be installed separately from a project, by using the parameter global
of a project.
$ composer global require prestashop/publish-on-marketplace
Usage
It requires the following parameters to make a successful upload:
Usage:
prestashop:marketplace:publish [options]
Options:
--api-key[=API-KEY] API Key of the marketplace (Optional if environment variable MARKETPLACE_API_KEY is set)
--changelog=CHANGELOG Content of the changelog of the version to upload, or
--changelog-file=CHANGELOG Path to the changelog of the version to upload
--metadata-json=METADATA-JSON Path to Json file containing details of product
--archive=ARCHIVE Path to the archive to upload
--update-type=UPDATE-TYPE Type of upgrade (Minor update / Major / new) [default: "updatemin"]
--debug Display additional details
--dry-run Display actions to do without actually running them
Note --metadata-json
and --archive
needs to be valid paths to your files.
The Json content will be sent as parameters to the Marketplace API. The API signature can be found on Swagger. is an example of metadata Json file for the module ps_checkout:
{ "id_product" : "46347", "technical_name" : "ps_checkout", "display_name" : "PrestaShop Checkout", "channel" : "stable", "product_type" : "module", "compatible_from" : "1.6.1.0" }
An example of command is:
php ../publish-on-marketplace/bin/publish-on-marketplace --api-key=SomeKey --archive=$PWD/ps_checkout-9.9.9.zip --metadata-json=$PWD/metadata.json --changelog="New test release for tool"
Development
Install dependencies with composer. Two CI tools are configured for this project: php-cs-fixer and phpstan
composer install
php vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff
php phpstan analyse tests/phpstan/phpstan.neon