Error: You are using PHP for CGI. To execute build_api_class.php from command line, you must use PHP for CLI mode.