Console Commands¶
Note: As of v7.0 you can run bin/command
instead of php command.php
.
List of available commands¶
php command.php
Clear cache¶
php clear_cache.php
Rebuild¶
php rebuild.php
Clears cache, rebuilds database.
Changing user password¶
php command.php set-password [username]
where [username]
is a user name, e.g. admin
.
Upgrade¶
php command.php upgrade
Upgrades EspoCRM instance to the next available version. The upgrade package is downloaded automatically. It may take a few steps to upgrade to the latest version, so you will need to run the same command a few times.
See additional parameters here.
Extension¶
Installing or upgrading:
php command.php extension --file="path/to/extension/package.zip"
Uninstalling:
php command.php extension -u --name="Extension Name"
Uninstalling by ID:
php command.php extension -u --id="extension-ID"
Running job¶
php command.php run-job JobName
where JobName is an intrernal name of the job you want to run.
Examples:
php command.php run-job Cleanup
php command.php run-job ProcessMassEmail
Version¶
Print the current version:
php command.php version
Setting user password¶
php command.php set-password [username]
where [username]
is a user name, e.g. admin
.
Import¶
See here.
App info¶
php command.php app-info
With this command you can get some information about the application (container services, binding, jobs).