Plugin Commands for Craft 3
This is intentionally not a plugin, it's a Yii Extension.
There is not need to bootstrap or enable it, it auto-registers itself., (*1)
Install
Require the package:, (*2)
composer require ostark/craft-plugin-commands
Usage
Get a list of all plugins, (*3)
./craft plugin/list
5 plugins found
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโคโโโโโโโโโโโโโคโโโโโโโโโโโโโโโโคโโโโโโโโโโโโโโโโ
โ Handle โ Version โ Developer โ Status โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโข
โ aws-s3 โ 1.0.8 โ Pixel & Tonic โ Disabled โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโข
โ async-queue โ 1.3.0 โ Oliver Stark โ Enabled โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโข
โ fortrabbit-object-storage โ 0.1.0 โ Oliver Stark โ Not installed โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโข
โ happy-brad โ v1.2 โ Matt Stauffer โ Enabled โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโข
โ upper โ 1.3.1 โ Oliver Stark โ Not installed โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโงโโโโโโโโโโโโโงโโโโโโโโโโโโโโโโงโโโโโโโโโโโโโโโโ
Install & enable ALL or a single plugin, (*4)
php craft plugin/install ALL
php craft plugin/install {plugin-handle}
Uninstall ALL or a single plugin, (*5)
php craft plugin/uninstall ALL
php craft plugin/uninstall {plugin-handle}
Disable ALL or a single plugin, (*6)
php craft plugin/disable ALL
php craft plugin/disable {plugin-handle}
Enable ALL or a single plugin, (*7)
php craft plugin/enable ALL
php craft plugin/enable {plugin-handle}
Limit execution to specific environments with the --env-only
flag.
This option is only useful in automated deployment processes, e.g. post-install-cmd
s defined in a shared composer.json
:, (*8)
```json
{
"scripts": {
"post-install-cmd": [
"php craft plugin/disable {plugin-handle} --env-only=production",
"php craft plugin/enable {plugin-handle} --env-only=dev,staging"
]
}
}, (*9)