California Residency Requirements
To file for divorce in California, either you or your spouse must have lived in:
- California for the last 6 months, AND
- The county where you plan to file the divorce for the last 3 months.
If you and your spouse have lived in California for at least 6 months but in different counties for at least 3 months, you can file in either county.
If you don't meet the residency requirement, you can still file for a legal separation.
Once enough time has passed so that you meet the residency requirement for a divorce, you may file an "amended petition" and ask the court for a divorce.
That guidance seems to me to beg the question of what it means to “live in” California. I suspect that like a lot of states it throws you back to a statutory definition having to do with “intent” to establish a domicile.