diff --git a/extension.php b/extension.php index 51b973747a..e8f7d9cae3 100644 --- a/extension.php +++ b/extension.php @@ -27,6 +27,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ +/** + * @deprecated Use `php command.php extension --file="path/to/extension/package.zip"`. + */ + if (substr(php_sapi_name(), 0, 3) !== 'cli') { exit; } diff --git a/upgrade.php b/upgrade.php index 6e95a7ced3..3f32a24f0f 100644 --- a/upgrade.php +++ b/upgrade.php @@ -27,6 +27,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ +/** + * @deprecated Use `php command.php upgrade`. + */ + if (substr(php_sapi_name(), 0, 3) !== 'cli') { exit; }