I would like to install and enable plugins through the command line in a way that can be scripted, and which replicates the same steps as are taken when you install a plugin through the Craft control panel.
What commands are necessary to accomplish this?
Would this be enough?
composer require repo/plugin-name ./craft install/plugin plugin-slug
Will these two commands also install the plugin migrations, enable the plugin, and update the
project.yaml file, just as if I had installed the plugin through the control panel?
Is it also necessary to run
./craft migrate/all? Or
Also, is it possible to install a specific plugin edition (e.g. Lite or Pro) through the command line?