mcpField
P
prestashop-update

prestashop-update

github.com/prestashopCloud & DevOps541 installsUpdated 5w ago
Repository

About prestashop-update

A skill that guides operators through updating a PrestaShop store with Update Assistant. It gates the process on readiness checks and user confirmation, then backs up, updates, and can restore the store if needed.

Key features

  1. 01Check versions and update requirements
  2. 02Review modified core and theme files
  3. 03Summarize errors and warnings
  4. 04Require confirmation before proceeding
  5. 05Back up, update, or restore the store

Use cases

  1. 01Prepare and perform a PrestaShop update
  2. 02Resolve reported blockers before updating
  3. 03Restore a backup after an update issue

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/prestashop/skills --skill prestashop-update

After installing, type/prestashop-updatein Claude Code to confirm it loaded.

Details

From the project README

PrestaShop - Updating to a newer version of PrestaShop

Requirements

Ask the user:

  • What is the path to the module autoupgrade from the store. It may be in a Docker container or behind a SSH session.
  • What is the admin folder name if you don't know it. It will be needed to run commands.

Usage:

  • The commands of Update Assistant are run with [module_path]/bin/console,
  • Commands details are provided by adding --help at the end.
  • The param -q avoids unecessary contents to be displayed. If you need to access the logs after a backup, an update or a restore, you can find them in [admin_path]/autoupgrade/logs/ with files in the format [year]-[month]-[day]-[time]-[action].txt.

Steps

  • Run update:check-new-version and display available versions (GATE). 3 channels may appear: online_recommended (default), online or local. online_recommended and online may not always appear. local requires the zip and xml files of the newer version of PrestaShop to be present in [shop_admin]/autoupgrade/download/. Ask the user to select the channel that will be used during the next steps
  • Check the compatibility of the store with update:check-requirements. Additional checks can be done when specific feedback is displayed:
  • Check the posts related to the current version of Update Assistant on https://github.com/PrestaShop/autoupgrade/discussions/categories/known-issues?discussions_q=is%3Aopen+category%3A%22Known+issues%22+label%3A%22Impacts%3A+[version]%22 by replacing [version] with the current major.minor version of the module. It can be found by running [module_path]/bin/console without any parameter.
  • Conclude with a clear go / no-go recommendation with a summary of errors / warnings / successes using the Severity levels below. If there are errors, investigate and request confirmation to fix them (automatically if there is a way to do so, wait for the user to suggest a fix, wait for the user to fix it himself) and run the command again (GATE).
  • When there are no more errors (warnings are acceptable), ask the user if he want to proceed with the update (GATE).
  • Backup the store with backup:create -q. This is a long process depending on the size of the store.
  • Run the update with update:start -q (TODO: Add param to know the command is run by an agent in analytics). This is a long process depending on the size of the store.
  • If the process ends with a successful message, let the user know it is possible to use the store and make sure everything works as expected (GATE).
  • In case of issue, the backup created by Update Assistant can be restored with backup:restore. This is a long process depending on the size of the store.
Severity levels
MarkerSeverityMeaning
🔴ErrorAn issue that must be fixed before updating
🟡WarningMinor issue, worth fixing but not blocking
🟢OKA check that did not returned anything to fix or confirmed the readyness

Comments

Markdown supported