установил wp-cli на aws, теперь пытаюсь выполнить команду
sudo wp media regenerate --yes --debug --allow-root
которая пиводит к такой ошибке.
bitnami@ip-****:/opt/bitnami/apps/wordpress/htdocs$ sudo wp media regenerate --yes --debug --allow-root
Debug (bootstrap): No readable global config found (0.008s)
Debug (bootstrap): No project config found (0.009s)
Debug (bootstrap): No package autoload found to load. (0.045s)
Debug (bootstrap): ABSPATH defined: /opt/bitnami/apps/wordpress/htdocs/ (0.045s)
Debug (bootstrap): Begin WordPress load (0.045s)
Debug (bootstrap): wp-config.php path: /opt/bitnami/apps/wordpress/htdocs/wp-config.php (0.045s)
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(982) : eval()'d code on line 93
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(982) : eval()'d code on line 94
PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(982) : eval()'d code:119
Stack trace:
#0 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(982): eval()
#1 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(945): WP_CLI\Runner->load_wordpress()
#2 phar:///usr/local/bin/wp/php/wp-cli.php(21): WP_CLI\Runner->start()
#3 phar:///usr/local/bin/wp/php/boot-phar.php(5): include('phar:///usr/loc...')
#4 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#5 {main}
thrown in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(982) : eval()'d code on line 119
bitnami@ip-172-31-15-209:/opt/bitnami/apps/wordpress/htdocs$
Как такое исправить?