wp-cli configuration in php?

The WP CLI aliases are mostly for context. WP CLI uses Drush as a source of inspiration, but Drush has a much more robust implementation of aliases.

If it were me, I would include other scripts and complex logic as a custom command.

WP_CLI::add_command( 'core foo', 'Foo_Command' );