I have now found two instances where it seems I will finally need to learn how to install and use drush for my new drupal 8 site. I've been avoiding drush the last 5 years working with drupal 7 because I couldn't find a clear tutorial on how to download, install and run (or even how or where to dl, install and run) drush.
For the record - the two use cases I seem to need drush for are:
- running a migration command to import the csv I've already prepared with content I exported from a wordpress site. I'm trying to use the migrate Migrate Source CSV and the example listed on github.
- running the command entity-updates per the mismatched entity question I posted.
So, I've now plunged back into trying to suss drush out, and I have some questions with my understanding thus far. My knowledge has been limited to logging into my host server to use cpanel (file manager, backups) and using the filezilla ftp client.
According to [this tutorial by digitalocean] I need to install LAMP stack and pear. This is the first point of confusion.
- Is this still the correct method for drupal 8?
- How do I install LAMP on my server - I'm using a Bluehost dedicated server, so it should already have Linux Apache MySQL PHP, correct? Or is this an application of some kind for those components I'm already using on my server to run my sites?
- How do I install pear? From the command line I can access through my cpanel?
Then, trying to follow this Toronto Website Developer by Peter Yaworski tutorial it seems I also need composer?
- Do I need to install the composer module?
- Or do I install the [full composer here] - and do I install it to my server via cpanel command line as well?
That's about as far as my spaghetti understanding goes as to how what is needed to actually get drush up and running as a command line I can use. Oh, and finally, when I see videos or examples of people using drush, I assume they're running it from their server unless they have a local drupal install, correct?
Thanks in advance for any clarification - can't help but feel I'm in over my head here.