7x Exponential Network Docs Global options
← Command reference

Global options

// updated · xne 0.3.0.9

xne command reference: Global options.

Every command takes these.

OptionMeaning
--root=DIRthe install (default: the current folder or the first parent with lib/version.php, kernel/ and settings/)
--jsonone JSON object on stdout (below); progress lines go to stderr
--dry-run, -nshow what would happen, change nothing
--help, -hthe manual of the command
--set key=valueany setting of etc/xne.conf.example, for this run (repeatable)

Setting shorthands, each the same as --set <key>=<value> (dashes become underscores):

OptionSettingMeaning
--channel=Cchannelstable, beta, main or security (see plan)
--method=Mmethodauto, filepatch or git
--maintenance=Mmaintenancekeep (visitors keep being served) or page (the kernel's maintenance page during the upgrade)
--php=PATHphpthe 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=PATHcomposerthe 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=DIRstate_dirbackups, locks and keys (default /var/lib/xne as root, ~/.xne/lib otherwise, %ProgramData%\xne\lib on Windows)
--cache-dir=DIRcache_dirthe release cache (default /var/cache/xne, ~/.xne/cache, %ProgramData%\xne\cache)
--sources=LISTsourcesrelease sources in rank order: gitlab, github, packagist, local
--finish=Ffinishezcache (autoloads and cache clears), velocity (also exp:velocity deploy) or none
--run-as=Urun_asauto (the owner of index.php when xne runs as root), root, or a user name
--network-url=URLnetwork_urlthe Exponential Network API (default https://network.se7enx.com/api/v1)
--server-data=DIRserver_dataserver commands: the index and key registry folder
--notify=Nnotifynotifications after check: auto (run the notify hooks that are set) or none
--report-level=Lreport_levelversion, health or full: what report sends

← Command reference · Exit codes →