WP-CLI

A command line interface for WordPress

Commands » eval-file

wp eval-file - Load and execute a PHP file.

Quick links: Github issues


OPTIONS

<file>
The path to the PHP file to execute.
[<arg>…]
One or more arguments to pass to the file. They are placed in the $args variable.
[--skip-wordpress]
Load and execute file without loading WordPress.