#!/usr/bin/env php WP-CLI only works correctly from the command line, using the 'cli' PHP SAPI. You're currently executing the WP-CLI binary via the 'fpm-fcgi' PHP SAPI. In case you were trying to run this file with a web browser, know that this cannot technically work. When running the WP-CLI binary on the command line, you can ensure you're using the right PHP SAPIby checking that `php -v` has the word 'cli' in the first line of output.