Most of those who have to move out of their homes while repairs or rebuilds take place are likely to find themselves in the unfamiliar position of tenant. Even if we have rented at some stage in our lives it may have been so long ago that the "rules" have changed to the point where we are absolute beginners.
Both the Department of Building and Housing (DBH) and the Tenants Protection Association (ChCh) Incorporated (TPA) are useful sources of information and have plenty of useful material on their sites have .
My suggestion would be to start with the DBH then progress to the TPA site.
The relevant DBH page is here and the TPA here.