In Drupal You can Installing module using command line with Composer, Drush, and Drupal cosnsole
In this blog We can see how to install module from the command line using drush
To Install modules using drush, Use below
drush dl MODULE_NAME
this command download drupal module, for enable this module use below command
drush en MODULE_NAME
reference :- https://www.drupal.org/docs/8/extending-drupal-8/installing-modules-from-the-command-line