S&P Global Ratings has upgraded the Tesla credit rating from B+ to BB-, the outlook is stable.