wp-cli/eval-command
Run arbitrary PHP code or files from the command line with WP-CLI. wp eval executes a code string, while wp eval-file loads a PHP file with positional arguments. Both support --skip-wordpress to run without WordPress and --hook to run after a specific WordPress hook fires.
$assoc_args can be used in eval [#89]wp-cli/wp-cli v2.12 [#77]composer phpcbf and allow wordpress-core-installer [#67]master to main [#61]__FILE__/__DIR__ regex pattern [#44]#! /bin/bash and similar at the beginning of PHP files [#35]How can I help you explore Laravel packages today?