exp:expfetch
The system card: the Exponential "e" next to the facts of this installation, its engine and its machine, with health hints (exp:info adds an inventory, exp:about the project).
Script bin/php/expfetch.php, code in kernel/private/classes/commands/syscard.php. Run it from the installation root, as the user the web server runs as:
./console exp:expfetch --help
./console exp:info --help
./console exp:about --help
php bin/php/expfetch.php --helpHelp text
The system card of this installation, drawn next to the Exponential "e"
./console exp:expfetch Exponential, the machine, PHP, the engine, the database and the site
./console exp:info the same and an inventory: extensions and versions, siteaccesses,
settings, cronjobs, the queue, cache sizes, help coverage
./console exp:about the same and the project: what Exponential is, license, links
./console exp:expfetch --plain plain text to paste (no logo, no colors)
./console exp:info --json --no-logo one JSON document, e.g. for a support request or monitoring
./console exp:expfetch --section=php,engine only these sections
./console exp:expfetch --watch=2 refresh every 2 seconds (Ctrl-C stops)
./console exp:expfetch --theme=light darker colors for a light terminal (also orange, mono, high-contrast)
./console exp:expfetch --color=256 --width=100 --animate
./console exp:expfetch --completion=bash >> ~/.bashrc
Colors only on a terminal, never with NO_COLOR set; the depth (truecolor, 256, 16) is taken from COLORTERM
and TERM. The facts come from the providers of settings/syscard.ini, each with a time budget: one that takes
too long shows n/a. Nothing is changed, and no password, key, token or full database address is printed.
Exit code: 0, or 2 for a wrong option.Options
| Option | Value | Help |
|---|---|---|
--json | ||
--plain | ||
--no-logo | ||
--section | required | |
--no-color | ||
--color | required | |
--theme | required | |
--width | required | |
--ascii | ||
--no-hints | ||
--no-bars | ||
--watch | optional | |
--count | required | |
--animate | ||
--mode | required | |
--list-providers | ||
--list-themes | ||
--completion | required |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expfetch.php, kernel/private/classes/commands/syscard.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.