Pick out the range you want.
Tell the supplier you need a cut sheet indicating the required gas supply location or download from the internet. In the installation booklet there will be a shaded gray area showing the exact rough in location.
Stub out a six inch nipple with cap, in this provided location, and patch the wall.
Mark the six inch nipple at the wall and remove it. Use the removed, marked nipple for measurement purposes. Replace with a shorter nipple and 90 or an angled gas cock, tight to the wall. The idea is you don’t want the flex aiming straight at the back of the range.
California code requires an accessible gas shut off. If you’re installing a Wolf, Viking, Thermador or other heavy range, you should install the gas cock in an adjacent cabinet. This is how it is regularly done in California. All hard piped. You cannot run a flex through a cabinet partition.
Don’t forget to install the anti- tip device.