How do you install a plugin through the command line?
Will these two commands also install the plugin migrations


There will be no migrations to run since it is a brand new installation.


  enable the plugin, and update the project.yaml file, just as if I had installed the plugin through the control panel?


Yes to both.


  Is it also necessary to run ./craft migrate/all? Or ./craft clear-caches/all?


Nope.


  Also, is it possible to install a specific plugin edition (e.g. Lite or Pro) through the command line?


Not natively. If a plugin has multiple editions, it will default to whatever is listed in their getEditions() method, which is typically going to be "Lite" first.