Tesla CEO Elon Musk says his electric car startup was close to death over the last year — within "single-digit weeks," he told "Axios on HBO" — during the troubled ramp-up of the mass market Model 3.

Driving the news: Musk has previously said that the company nearly went bankrupt in 2008, the year he took over as CEO, and that at the time Tesla had "less than a 10% likelihood to succeed." Over the past year, he has called the Model 3 buildout "production hell," and watched as his own erratic behavior — including an ongoing scrape with federal authorities — contributed to a plunge in Tesla’s share price.

But after months of waving away critics who described him as a slipshod manager, Musk admitted that Tesla "faced a severe threat of death."

"Essentially the company was bleeding money like crazy," Musk said. "And just if we didn't solve these problems in a very short period time, we would die. And it was extremely difficult to solve them."

was bleeding money like crazy," Musk said. "And just if we didn't solve these problems in a very short period time, we would die. And it was extremely difficult to solve them." During the summer, Musk called the 230-mile range, $35,000 Model 3 a "bet the company" project.

Musk called the 230-mile range, $35,000 Model 3 a "bet the company" project. Asked how close to death Tesla came, Musk replied: "I would say within single-digit weeks."

Why it matters, from Axios future editor Steve LeVine: Musk’s admission shows just how dire conditions became at a company that is synonymous with him, and that many regard as the key to a future electric car revolution.

Thought bubble from Axios' Felix Salmon: At worst, Tesla was single-digit weeks away from having to do a dilutive equity capital raise.

Musk said he spends about 70% of his time on Tesla — sometimes seven days a week, and sleeping in the factory.

"I was in the paint shop, body shop ... end of [the] line where we do final check out of vehicles," he said. "I personally redesigned the whole battery pack production line and ran it for three weeks. Pretty intense."

body shop ... end of [the] line where we do final check out of vehicles," he said. "I personally redesigned the whole battery pack production line and ran it for three weeks. Pretty intense." "I think what a lot of people don't understand is that I'm like the chief engineer like that. I actually do lead engineering of the rockets and lead the engineering of the vehicles and production. ... Ninety percent of my day is spent on engineering and production.

Asked what he does that no one should do, Musk answered: "No one should put this many hours into your work. This is not good. People should not work this hard."