Flarum’s own documentation about extensions can help:
If you’re going the command prompt way, though, you’ll have to make sure you have Composer installed on your computer, download your website through an FTP client, install the requirement you need and then upload everything again with an FTP client.
Also, please post in the right category next time.