If you want to install addons, you have to put the addon files in your server where your XF location is.
When you download an addon, it includes a "upload" folder. The content of that folder you upload to your server.
See: https://xenforo.com/xf2-docs/manual/add-ons/