An upgrade with xne is five commands, and the first four change nothing. This is real output, from a 7x server, with the path, database name, owner and release numbers replaced by examples.
Detect
$ xne detect --root=/var/www/vhosts/example.com/doc/www.example.com
Exponential 6.0.14 at /var/www/vhosts/example.com/doc/www.example.com (git, owner example, PHP 8.5.13)
database: postgresql example (ezsite_data 6.0.14)
extensions: 95 (third-party=33, 7x=56, kernel=6)
kernel tools: console, upgrade, maintenance, checkmanifest, ezcache, autoloads, velocity
manifest: 31139 entries
PASS: detected
Traps
$ xne traps --root=/var/www/vhosts/example.com/doc/www.example.com
info clear-id-one-at-a-time cache clears run one tag per ezcache.php call (a comma list is ignored by --clear-id)
info live-manifest share/filelist.md5 is replaced with the target's own copy in the same upgrade, and checked afterwards
PASS: 2 trap check(s), 0 blocking
Plan
$ xne plan --root=/var/www/vhosts/example.com/doc/www.example.com
source gitlab: skipped: gitlab_project is not set
source github: used (203 refs)
source packagist: not needed
up to date: 6.0.14 on the stable channel
PASS: up to date (6.0.14)
An install on an older release gets the full plan instead: the target, the file counts, the local edits, the
database steps, the traps and the ordered steps. Exponential 6.0.15 is on the main branch today (xne plan --channel=main); its stable release is planned for Q4 2026. The newest stable release is 6.0.14.
Upgrade and roll back
The upgrade ends with one of three lines:
PASS: upgraded 6.0.13 -> 6.0.14 (backup 20261124-031502-a1b2)
FAIL: <reason>; rolled back to backup <id>
REFUSED: ...
# the backups, newest first
xne backups --root=...
# what the newest backup would restore
xne rollback --root=... --dry-run
# files and database
xne rollback --root=... [BACKUP-ID]
For scripts: JSON, and another PHP
Every command can print one JSON object. When the default PHP lacks the database extension, name a PHP that has it.
xne plan --root=/var/www/vhosts/example.com/doc/www.example.com --json
xne upgrade --root=/var/www/vhosts/example.com/doc/www.example.com --php=/opt/plesk/php/8.5/bin/php
Inside an install
The kernel console runs the same engine for the install it belongs to:
./bin/php/console exp:network:check
./bin/php/console exp:network:plan
./bin/php/console exp:network:upgrade
./bin/php/console exp:network:rollback
# the same, without the console
php extension/exp_network/bin/php/network.php check
Check and report
# what each channel offers and the advisories for this version
xne check --root=...
# the health report an install with a key would send
xne report --root=... --dry-run
The network API
The API v1 of Exponential Network answers on this site. Every answer is JSON with ok.
GET /api/v1/status: whether the API is up, and whether its release index is built.GET /api/v1/releases: the release index, every release tag (ref, commit, version, stable) and the main branch head.GET /api/v1/advisories?version=6.0.14: the security advisories whose range contains that version.POST /api/v1/checkwith{"version": "6.0.14"}: what each channel offers and the advisories that apply. Anonymous (only the version is read) or signed with an install key.POST /api/v1/report: signed only, the install's health report at the level its key allows; never content, users or settings values.
xne check asks this API (setting network_url, default https://network.se7enx.com/api/v1).
The upgrade guide
This guide takes one install from its version to a newer one. It is the same on every server; only the paths differ. Everything here is safe to run: the first three steps change nothing, and the upgrade itself makes a verified backup first and rolls back by itself when anything fails.
Before you start
- You know the install's root (the folder with
lib/version.php,kernel/andsettings/). - You run xne as root (it runs the install's own tools as the owner of
index.php), or as the owner. - The PHP that runs xne has the PDO driver of the install's database (
pdo_mysql,pdo_pgsql,pdo_sqlite). The install's own tools run withphp=(default: this PHP when it is 8.1 or newer). - On a site that people use, you have the go of the site's owner, and a time when a short slowdown is acceptable.
1. What is the install?
xne detect --root=/var/www/vhosts/example.com/doc/www.example.com
Check the version, the install type (git installs are fast-forwarded, plain files installs are file-patched), the database line (it must be reachable: ezsite_data shows its version) and the kernel tools.
2. Traps
xne traps --root=...
A block line refuses the upgrade until it is fixed (or accepted with --accept=<id> by the person responsible). A warn line needs an action after the upgrade (for example flushing the Valkey view cache). traps.md explains each.
3. The plan
xne plan --root=... # stable channel: the newest stable release of the same major
xne plan --root=... --channel=security # only the newest release of the same x.y line
xne plan --root=... --to=v6.0.14 # an exact release
xne plan --root=... --channel=main # the nightly branch (warns; a backup is always made anyway)
Read:
- files: how many are added, updated and retired; local edits: files changed on this server. Each one is copied into the backup's
kept/folder and then replaced with the release's version. Plan the merge of each with the site's owner (a template change, a hot fix) before you upgrade, or right after it. - protected: files the release has that xne never writes (
settings/override,settings/siteaccess,var,config.php,.htaccess...). Compare them with the release by hand when a release note asks for it. - Composer's (since 0.3.0.4): in an install whose libraries Composer manages (
vendor/composer/installed.json), files invendor/, in every package's install path and in the extension folderscomposer.locknames, andcomposer.json/composer.lockthemselves, are never written or retired by the file patch. Releases moved extensions out of the kernel repository into packages, and an install's ownshare/filelist.md5still lists their files: before 0.3.0.4 those were retired, and the site lost its extensions (a hosted install, 2026-11-26). - composer.json: in such an install it follows the release's file, merged: the release's file, plus the site's extension packages the release no longer requires, at
>=their locked version (a release that drops an extension never uninstalls one the site uses, and the release's own packages, exponential-php-floor above all, may need a newer one); other requirements the release dropped go (libraries it replaced). The plan lists the new packages, the changed constraints, the site extensions kept and what was dropped. Acomposer.jsonthat is a link into a capture'sarc/folder is written through the link. - database:
kernelmeans the kernel's ownexp:upgraderuns (its stages are listed);sqllists theupdate/database/<engine>/files that run, in order. When composer.json changes, thelibrariesstage runs first, with--update=every root requirement (the release's set is resolved as a whole; a partial update keeps locked versions the release's packages no longer accept); vendor/, the composer files and the package folders, also the ones about to be installed, are in the backup, and a rollback gives them back (a composer file behind a link through that link) and moves out what was installed. - blocked: anything here refuses the upgrade.
4. The dry run
xne upgrade --root=... --dry-run
The same plan, through the upgrade command; nothing changes.
5. The upgrade
xne upgrade --root=...
It prints each step as it goes (.. backup: archiving, .. files: writing, .. kernel: exp:upgrade, ...) and ends with:
PASS: upgraded 6.0.14 -> 6.0.15 (backup 20261124-031502-a1b2): done. Note the backup id.FAIL: <reason>; rolled back to backup <id>: nothing of the upgrade is left; the install runs as before. Read the reason (troubleshooting.md), fix the cause, plan again.REFUSED: ...: a safety check stopped it before anything changed.
Visitors: by default the site keeps serving during the upgrade. With maintenance=page (server setting or the install's Maintenance=page) visitors get the kernel's maintenance page (503 with Retry-After) while admins can still sign in; it needs bin/php/maintenance.php (Exponential 6.0.15 or newer) in the install or in the target.
6. After the upgrade
- Open the site and the admin, sign in, look at a few pages.
- Merge the local edits listed as
kept aside(copies in<backup dir>/kept/). - Act on every
warntrap (Valkey cache flush, PHP worker restart on LiteSpeed ...). - When the web server keeps PHP processes with the old classes (PHP-FPM, Velocity, LiteSpeed), reload them. On installs that ask for it (
finish=velocity), xne runsexp:velocity deployitself. - Setup > Upgrade check in the admin should show no modified kernel file (the manifest landed with the release).
Upgrading several installs
Plan all of them first (xne plan --json per install; cronjobs/xne-check-all prints one line per install of /etc/xne/installs), then upgrade one at a time. Each install has its own lock and its own backups. The whole procedure, with shared folders and per-install settings: multi-install-guide.md. On Windows: windows-guide.md.
Older lines (4.x, 5.x)
Phase 1 upgrades within 6.x; xne detects older installs and chains the SQL update files, but the 4.x/5.x upgrade chains are completed and tested in phase 3. Until then, plan only.