Use public transport. On the website of Swiss Federal Railways (SBB), you can enter a place, an attraction, a stop or the name of a street or road; the system will then show you the best connection. You can also use this method to find many connections from neighbouring countries into Switzerland.
In addition, the Swiss Travel System (STS) offers a wide range of travel passes with plenty of bonus benefits. No matter where you stay or for how long, how often you use public transport or how many excursions into the mountains you are planning – there's a ticket to suit every preference and every requirement.