CIC
Canon 1217
Book IV. The sanctifying function of the Church
Worship, sacred places and times
Code of Canon Law
English§1. After construction has been completed properly, a new church is to be dedicated or at least blessed as soon as possible; the laws of the sacred liturgy are to be observed.
§2. Churches, especially cathedrals and parish churches, are to be dedicated by the solemn rite.