---
layout: default
title: 'wp eval-file'
display_global_parameters: true
---

<small>[Commands](/commands/) &raquo; eval-file</small>

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

<small>Quick links: <a href="https://github.com/wp-cli/wp-cli/issues?q=is%3Aopen+label%3Acommand%3Aeval-file+sort%3Aupdated-desc">Github issues</a></small>

<hr />

### OPTIONS

&lt;file&gt;
: The path to the PHP file to execute.

[&lt;arg&gt;...]
: 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.



