Skip to content

Instantly share code, notes, and snippets.

@artistro08
Created October 30, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artistro08/d04c8b197702397ec50a91af58eb3fd1 to your computer and use it in GitHub Desktop.
Save artistro08/d04c8b197702397ec50a91af58eb3fd1 to your computer and use it in GitHub Desktop.
Plugin Management from the Deploy Console in RainLab.Deploy on OctoberCMS
<?php
// Install A plugin from the Rainlab Deploy Console
Artisan::call('plugin:install', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
// Remove A plugin from the Rainlab Deploy Console
Artisan::call('plugin:remove', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
// Refresh A plugin from the Rainlab Deploy Console
Artisan::call('plugin:refresh', ['name' => 'Acme.BlogPost', '--force' => true]);
echo Artisan::output();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment