Cable to Elon Musk: The Germans are coming!

Bavarian auto giant Volkswagen said Friday it plans to spend a staggering $50 billion over the next five years in a what it called an “electric offensive” that looks aimed squarely at Tesla.

Volkswagen’s plan, chief executive Herbert Deiss said, is an all-out blitz that will roll out 50 all-electric car models by 2025.

“This will be a paradigm shift for our company,” Diess said during a press conference, adding that Volkswagen will “continue to set very ambitious goals.”

Volkswagen — which sold more than 10 million vehicles last year, almost all of them gasoline or diesel-powered — reportedly plans to launch its first all-electric cars in 2020. Starting prices will be targeted as low as $23,000.

That would sharply undercut the $35,000 pricetag that Musk has advertised for Tesla’s mass-market Model 3 Sedan — a price that so far has more typically risen closer to $50,000.

Though Tesla currently dominates the electric vehicle space, it has struggled to ramp up its production to a level comparable to that of established industry heavyweights like Volkswagen.

Tesla built just over 53,000 Model 3s in the last quarter, and has yet to reach Musk’s promised production rate of 10,000 vehicles per week. Volkswagen, meanwhile cranked out 2.8 million cars in its most recent quarter.

Tesla and Volkswagen have been on a collision course for a while now.

Earlier this year, when Musk claimed to be mulling taking Tesla private, he blinked partly because pulling off a buyout might require getting into bed with the Beetle-maker. According to reports, Volkswagen was prepared to team up with buyout firm Silver Lake to invest as much as $30 billion into a Tesla buyout.

Elsewhere, Musk this summer personally emailed Diess to ask if a Volkswagen employee had been trashing Tesla on Twitter — the South African billionaire’s favorite social-media platform.

“They would definitely be playing with fire, given that they are still paying the fine from their last emissions cheating scandal,” Musk told the Wall Street Journal at the time.

A probe revealed the Twitter troll was the brother of a Volkswagen employee.

Last year, former Volkswagen CEO Matthias Müller took aim at Tesla’s skimpy car output and massive losses, noting that Volkswagen earns more than 13 billion euros a year.

“And if I’m correctly informed, Tesla destroys millions of dollars in the triple digits every quarter, firing employees for whatever reason,” Muller added for good measure. “So, social responsibility — yeah, I don’t know about that.”

Volkswagen’s Friday presser, however, didn’t put a damper on Tesla’s shares, which went up on the news that its Chinese order page for the Model 3 was live.

Tesla shares finished the day up 1.7 percent, at $354.21, while Volkswagen ended down 2.5 percent, at $16.46.