Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Console commands

The bin/php/console entry point - command names and namespaces, extension commands found automatically, describing your own commands, options and exit codes, and the commands an application developer uses every day.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/app-creators/console-commands.md

On this page

Console commands

This page is for application creators who run and add command line tools. bin/php/console is one entry point for every script of Exponential: kernel scripts, shell scripts, extension scripts and cronjob parts (Exponential Console).

Contents

  1. Finding commands
  2. Command names
  3. Your extension's commands
  4. Options and exit codes
  5. Commands you will use daily

Finding commands

php bin/php/console                   # every command
php bin/php/console list ext:expdemo  # one namespace
php bin/php/console --version

Command names

NamespaceRunsExample
exp:<name>bin/php/<name>.phpexp:ezcache
shell:<name>bin/shell/<name>.sh
bin:<name>bin/<name>.sh or .php
ext:<ext>:<name>extension/<ext>/bin/php/<name>.php or bin/<name>.shext:expqueue:status
ext:<ext>:sh:<name>extension/<ext>/bin/shell/<name>.sh
cron:<part>a cronjob partcron:frequent

Without a namespace the console tries exp:, shell:, then bin:.

Your extension's commands

Put the script in extension/expdemo/bin/php/report.php; the console finds it as ext:expdemo:report, no registration needed. Give it a @description tag in its docblock so list describes it. Write the logic as a class (CLI scripts with eZScript).

Options and exit codes

  • Everything after the command name goes to the script unchanged; --quiet, --version and --help alone belong to the console.
  • Scripts refuse to run as root unless --allow-root-user is given; run them as the web server's user.
  • The script's exit code is returned unchanged: 0 for success, anything else for failure, so commands work in CI and shell pipelines. Make your commands follow that.

Commands you will use daily

CommandDoes
exp:ezpgenerateautoloads -eregenerate extension autoloads
exp:ezcache --clear-tag=iniclear caches by tag or id
exp:cache statusevery cache layer, PASS or FAIL
exp:ini get/set/whereread and change settings (exp:ini)
exp:velocity deployautoloads, caches, PHP reload, Velocity restart, in order
exp:velocity status, restart, cache clearthe application server
exp:help check, exp:help searchthe help's link check and search
exp:benchmarkmeasure the site
exp:maintenance on/offmaintenance mode
cron:<part>run a cronjob part

The generated pages of every command, with their options, are in the examples (doc/eng-us/examples/commands/).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x