Tesla CEO Elon Musk threatened Saturday to pull the company’s factory and headquarters out of California in an escalating spat with local officials who have stopped the company from reopening its electric vehicle factory.

On Twitter, Musk also threatened to sue over Alameda County Health Department coronavirus restrictions that have stopped Tesla from restarting production at its factory in Fremont south of San Francisco.

“Frankly, this is the final straw,” he tweeted. “Tesla will now move its HQ and future programs to Texas/Nevada immediately.”

He wrote that whether the company keeps any manufacturing in Fremont depends on how Tesla is treated in the future.

Musk has been ranting about the stay-home order since the company’s April 29 first-quarter earnings were released, calling the restrictions fascist and urging governments to stop taking people’s freedom.

Story continues below advertisement

6:41‘A Women Makes a Plan’: What it was like raising Elon Musk

‘A Women Makes a Plan’: What it was like raising Elon Musk

An order in the six-county San Francisco Bay Area forced Tesla to close the Fremont plant starting March 23 to help prevent the virus’ spread,

 » READ MORE FROM GLOBAL NEWS