You will probably need to use FULL_BASE_URL for this as `$_SERVER['HTTP_HOST']` is undefined in CLI environments.