Artisan vs Please

on January 8th, 2019

Statamic 2 has always had the CLI command, please. It literally is just a renamed copy of Laravel's artisan.

Statamic 3 will contain both artisan and please, both for backwards compatibility, and syntactical sugar. Artisan will show you all available CLI commands, which includes those in the Statamic namespace. You see, since Statamic 3 is a composer package, all of its custom commands are scoped inside statamic:, like statamic:make:widget.

The Power of Politeness

If you choose to use the please command, you'll be given a shortcut right into the Statamic command namespace. php please make:widget will run php artisan statamic:make:widget for you, thus saving you the hassle of having to type out the typo-prone word "statamic".

This is not the final list of Statamic commands.

Commands that don't exist inside the statamic namespace will be delegated back to Artisan so there is no need to switch back and forth between the two.

If you want to stick with vanilla Artisan, feel free to toss the please file and carry on. It's your site. You do you.

Jack McDade
Jack McDade, Creator of Statamic
Creator of Statamic

Copyright 2020 Statamic