Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04704

update-xperience

Update Kentico Xperience NuGet and pnpm packages to latest non-breaking version and commit changes.

БесплатноБез исполняемых скриптов
Kenticoот Kentico★ 20 звёзд на GitHub

Установить update-xperience в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Purpose

Automate updating all Kentico Xperience dependencies (Kentico.Xperience.* NuGet + @kentico/* pnpm) when a newer version than the one declared in README.md is available, run required update tasks, and produce a proper commit. Abort early if no newer version or if breaking changes are detected.

Preconditions (MUST validate before proceeding)

  1. Git working tree clean: git status --porcelain MUST return no output.
  2. Current branch MUST NOT be main.
  3. Confirm central package management file Directory.Packages.props is present.

If any precondition fails: output a clear message and stop.

Run CI Restore

This update process includes a CI Store run after the database is updated. To prevent the loss of updated CI state, a CI Restore should always be run before this process begins.

A restore can be run with the ./scripts/Restore-CI.ps1 script, run from the scripts directory.

Xperience CLI Status Commands

The scripts/*-CI.ps1 and Get-DB-Status.ps1 scripts wrap native Xperience CLI commands (correct launch profile, configuration, --no-build). Prefer the scripts; the native equivalents, run from src/Kentico.Community.Portal.Web, are:

Script Native command
./Disable-CI.ps1 dotnet run --no-build -- --kxp-ci-disable
./Enable-CI.ps1 dotnet run --no-build -- --kxp-ci-enable
./Get-CI-Status.ps1 dotnet run --no-build -- --kxp-ci-status
./Get-DB-Status.ps1 dotnet run --no-build -- --kxp-db-status --format json

--kxp-db-status reports state: Ready, MissingConnectionString, NotAvailable, or UpdateRequired (with databaseVersion / applicationVersion). It exits 0 for every state, so always read state. Docs: https://docs.kentico.com/documentation/developers-and-admins/installation/check-the-database-status

--no-build runs the last build output, so the app version reported by these commands is whatever was last built — rebuild after a package bump before trusting applicationVersion.

Pre-check Database Status (MUST)

Before disabling CI, run ./Get-DB-Status.ps1. state MUST be Ready. If it is anything else, stop and report — do not start the update on a database that is already mismatched or unreachable.

Disable CI Before Version Bump (MUST)

Disable CI before updating NuGet package versions to avoid app/database version mismatch failures when CI commands run after package updates.

Run from the scripts directory:

./Disable-CI.ps1
./Get-CI-Status.ps1   # confirm CI reports disabled

If this step fails, stop and resolve before proceeding.

CI Re-enable Safety Contract (MUST)

From the moment ./Disable-CI.ps1 succeeds, the repository is in a disabled-CI state that MUST NOT outlive this workflow. Treat everything between here and the "Re-enable CI And Store" step as a guarded window with a mandatory cleanup:

  • The window spans the NuGet/pnpm bumps, the solution build, and the Update-Xperience.ps1 run — up to and including the "Re-enable CI And Store" step. If ANY step in that window fails or you abort for any reason (build failure, breaking changes, Update-Xperience.ps1 failure, etc.), you MUST run ./Enable-CI.ps1 from the scripts directory before stopping, so CI is never left disabled for the next developer.
  • After re-enabling on an abort path, do NOT run ./Store-CI.ps1 (the database was not successfully updated) and do NOT commit. Report that CI was re-enabled and that a CI Store was intentionally skipped.

Determine Current and Latest Xperience Version

  1. Run dotnet tool restore at the repository root
  2. Run dotnet list Kentico.Community.Portal.slnx package --outdated and analyze the output to identify if Xperience by Kentico packages are outdated
  3. If there are no out of date packages: report "No new Xperience version available" and STOP.

Update NuGet Packages

  1. Open Directory.Packages.props.
  2. Identify all <PackageVersion Include="Kentico.Xperience.*" Version="X" /> entries where Version equals the current version.
  3. Replace their Version with the latest version reported by dotnet-outdated.
  4. If a referenced package is a -preview or -prerelease version and it is part of the product update train, update it to the corresponding newer -preview or -prerelease version. Do not silently skip this step.
  5. Do NOT change packages whose versions are intentionally different (examples today: Kentico.Xperience.Lucene, Kentico.Xperience.MiniProfiler, Kentico.Xperience.TagManager). These are outside the scope of this task. Additional Kentico.Xperience.* integration packages may also version on an independent cadence; do not force them to match the product version unless explicitly listed as part of the curre
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл update-xperience?

Update Kentico Xperience NuGet and pnpm packages to latest non-breaking version and commit changes.

Как установить скилл update-xperience?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл update-xperience запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить update-xperience с