SAN FRANCISCO — Tesla will only sell its electric cars online as it accelerates its cost-cutting so it can realize …