Middleware when running Artisan console request
<p>I want a custom piece of middleware to run whenever I run an artisan command. I need to set a few environment variables to be used in the app configuration before the actual command executes but Im not able to find any documentation on the Artisan request lifecycle. </p>

<p>Is this possible to do?</p>