Tesla Inc. CEO Elon Musk tweeted on Saturday that Tesla will move its headquarters and future programs to Texas or Nevada from California immediately.

“If we even retain Fremont manufacturing activity at all, it will be dependen (sic) on how Tesla is treated in the future,” he wrote on Twitter, referring to the facility in the San Francisco Bay area that is Tesla’s only U.S. vehicle factory.

Musk also tweeted about suing Alameda County, Calif., after its health department said the electric carmaker must not reopen the Fremont factory as local lockdown measures to curb the spread of the coronavirus remain in effect.
 

Musk had told employees on Thursday that limited production would restart at Fremont on Friday afternoon.

California Gov. Gavin Newsom said on Thursday that manufacturers in the state would be allowed to reopen. But Alameda County, where the factory is located, is scheduled to remain shut until the end of May with only essential businesses allowed to reopen.

A county official said on Friday that its health department has had many discussions with the company and recommended that Tesla wait at least another week to monitor infection rates and discuss safe ways to resume production.

Musk, who sparred with California officials in March over whether Tesla had to halt production at Fremont, has criticized the lockdown and stay-at-home orders, calling them a “serious risk” to U.S. business and “unconstitutional.”

The tweets raise pressure on Newsom and San Francisco Bay area officials who were among the first in the U.S. to implement shelter-in-place orders and have been cautious about lifting them. Musk, 48, has arguably been the tech sector’s loudest voice advocating for the reopening of the economy, which has drawn criticism from some of his peers in the business community and cheers from conservative political circles.

Tesla has roughly 20,000 employees in the region, including its headquarters in Palo Alto. Moving the headquarters and future programs to Texas and Nevada, where Tesla has its massive battery plant, is a threat that would be relatively easier for Musk to follow through on.

But the Fremont plant is the only place in the world where Tesla makes the Model S, X and Y, and the company has sunk billions of dollars into the facility over the years.

“Picking up and leaving isn’t really an option right now,” Ben Kallo, an analyst at Robert W. Baird & Co., said by phone. “I don’t know if you can quickly say ‘I’m leaving.’”

Musk has been scouting locations for a new U.S. factory to build the Cybertruck and has hinted it could be constructed in Texas, where part of Tesla’s chip team is based. His rocket company Space Exploration Technologies Corp. also has operations in the state.

Missouri also has been making a pitch for the plant.

Local officials in Fremont and Alameda County did not immediately respond to a request for comment Saturday morning.

Reuters and Bloomberg contributed to this report.