You can invest via a mutual fund from Barons, though you need to buy other stocks as well. Not really sure why anyone would want to invest in SpaceX as per your question, as its goals are borderline non-profit. Maybe they will drop the whole Mars thing someday and/or it won't be a big part of what they do.