Every command takes these.
| Option | Meaning |
|---|---|
--root=DIR | the install (default: the current folder or the first parent with lib/version.php, kernel/ and settings/) |
--json | one JSON object on stdout (below); progress lines go to stderr |
--dry-run, -n | show what would happen, change nothing |
--help, -h | the manual of the command |
--set key=value | any setting of etc/xne.conf.example, for this run (repeatable) |
Setting shorthands, each the same as --set <key>=<value> (dashes become underscores):
| Option | Setting | Meaning |
|---|---|---|
--channel=C | channel | stable, beta, main or security (see plan) |
--method=M | method | auto, filepatch or git |
--maintenance=M | maintenance | keep (visitors keep being served) or page (the kernel's maintenance page during the upgrade) |
--php=PATH | php | the PHP binary for xne itself and the install's tools; xne runs itself again under it when it differs. Without it the tools run with the first PHP that meets the install's vendor/composer/platform_check.php (and 8.1): the web server's PHP (.htaccess AddHandler, else .php-version), this PHP, php on PATH, then the newest installed (Plesk, LiteSpeed, cPanel, CloudLinux, /usr/bin/phpX.Y); the plan shows it as php and is blocked when there is none (since 0.3.0.2) |
--composer=PATH | composer | the Composer phar the kernel's libraries stage runs, under the install's PHP. Without it xne passes the first real phar it finds (composer.phar on the PATH, in /usr/local/bin or /usr/bin, the install's own); a composer wrapper script is never taken, because its phar starts with the node's CLI PHP (since 0.3.0.5) |
--state-dir=DIR | state_dir | backups, locks and keys (default /var/lib/xne as root, ~/.xne/lib otherwise, %ProgramData%\xne\lib on Windows) |
--cache-dir=DIR | cache_dir | the release cache (default /var/cache/xne, ~/.xne/cache, %ProgramData%\xne\cache) |
--sources=LIST | sources | release sources in rank order: gitlab, github, packagist, local |
--finish=F | finish | ezcache (autoloads and cache clears), velocity (also exp:velocity deploy) or none |
--run-as=U | run_as | auto (the owner of index.php when xne runs as root), root, or a user name |
--network-url=URL | network_url | the Exponential Network API (default https://network.se7enx.com/api/v1) |
--server-data=DIR | server_data | server commands: the index and key registry folder |
--notify=N | notify | notifications after check: auto (run the notify hooks that are set) or none |
--report-level=L | report_level | version, health or full: what report sends |