Actually usually code would require that you have a stop & drain valve for your water main shutoff just as it enters the house. But maybe not where you live I don't know.
But I usually just put in tee on the lowest piping that's easily accessible. Off the tee I put in a sediment faucet. This way you can kill the water and open some faucets or tub valves throughout the house and then open the sediment faucet and easily control the draining of the water. You can drain it it a bucket or you can use a hose and run the hose to a floor drain if there is one near by. Etc.