> For the complete documentation index, see [llms.txt](https://juampi92.gitbook.io/phecks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://juampi92.gitbook.io/phecks/user-guide/command-line-interface.md).

# Command-line interface

To run the checks, simply:

```
php artisan phecks:run
```

If there are any errors, the command's exit code will be `1`, and the errors will be displayed as following:

![](https://1297152614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkYUHcwVaoWRPmvCvo0o%2Fuploads%2FVdfMOvjiiRfxDEK6dGQm%2Fimage.png?alt=media\&token=dd9a7e0f-28d5-45df-8d9a-9f1e3a11c5f4)

## Command options

* `--generate-baseline` will run the checks and generate the baseline from them. [see baseline](/phecks/user-guide/the-baseline.md).
* `--ignore-baseline` Will run the checks and show all the violations (ignoring the baseline if there is any) [see baseline](/phecks/user-guide/the-baseline.md).
* `--format[=FORMAT]` Will change the way the errors are rendered. `console` by default, but you can also have `github`. [see formatters](/phecks/advanced/formatters.md).
