General recommendation is to hardwire the inverter as near the battery banks as possible. The distance should be under 10ft, to avoid unnecessary power loss and voltage drops, as well as to reduce the chances of a hazard occurring. The place where you store it should be dry and ventilated (getting a waterproof power inverter for boat is a good idea), and this goes for storing the battery too.