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 for developers

The ./console commands extension developers use most - settings, caches, autoloads, class and template checks, help, logs, content jobs - and how an extension's scripts appear as ext: commands.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/extension-development/part-8-reference/console-commands-for-developers.md

On this page

Console commands for developers

Part 8, reference 27. ./console at the installation's root runs every command line script of the kernel and of the active extensions under one name. ./console list shows them all (about 300 on an installation with many extensions); ./console help <command> shows one command's options. The scripts are also reachable directly as php bin/php/<script>.php. How an extension adds its own commands is in CLI scripts and console commands.

The ones you will use every day

CommandDoes
exp:iniread and change settings in every scope: get, set, add, rem, clear, toggle (The exp:ini command)
exp:cacheclear and inspect caches by tag, id or all (Cache control from the console)
exp:ezcachethe classic cache script: --clear-tag, --clear-id, --clear-all, --list-tags
exp:ezpgenerateautoloadsregenerate the autoload arrays; -e for extensions after adding or renaming a class
exp:checkclassesload every declared class and report the ones PHP refuses to load: finds signature mismatches at once
exp:eztemplatecheckcheck the syntax of the templates of a siteaccess or a design directory
exp:ezexecrun a PHP file with the kernel loaded: ./console exp:ezexec path/to/script.php
exp:systeminfothe facts and health checks of the system information page, as text or JSON

Help, logs and content

CommandDoes
exp:exphelpthe help system: build the index, search, check links (check) (The help system for extensions)
exp:explogslist, follow and search the log files
exp:auditthe audit log: tail, show one event, verify
exp:expcontentjobrun, list, resume and cancel content jobs (large removes and copies in batches)
exp:ezsubtreecopy, exp:ezsubtreeremovecopy or remove subtrees
exp:updatesearchindexreindex all content
exp:ezcsvimport, exp:ezcsvexportcontent from and to CSV

Database and schema

CommandDoes
exp:ezsqldumpschemadump the database schema to a file (.dba or SQL)
exp:ezsqlinsertschemainsert a schema and data from a .dba file
exp:ezsqldiffthe differences between two schemas
exp:checkdbfilesverify the database update files against the upgrade path

Your extension's schema workflow is in Database schema and .dba files.

Quality

CommandDoes
exp:checkcodestylechanged PHP files against the code style
exp:checkmanifestshare/filelist.md5 against the files
exp:ezcheckphptagcharacters before <?php or after ?> (which break headers)

Your extension's commands

Every script in an active extension's bin/php/ (and its command classes) appears as ext:<extension>:<script>, for example ext:cjw_newsletter:status. The first line of the script's docblock (@description) is the text ./console list shows.

Running commands

  • Run them as the web server's user, so the files they write belong to it. As root they refuse unless --allow-root-user is given.
  • -s <siteaccess> runs a command in a siteaccess's settings.
  • Most commands that change data have --dry-run; use it first.

Demo mode and the console. With EXP_DEMO_MODE=1 in the shell, every command prints Demo mode is on (EXP_DEMO_MODE=1) ... on standard error and records demo/mode ... sapi=cli once; exp:resetuserpassword refuses administrators, and exp:install and the kickstarter keep a well-known or short administrator password. Demo mode for developers.

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