There are no direct trains, there are only routes with one or two connections. We recommend you to take a regional train directly to La Spezia and from there change to a local Cinque Terre Express train to your destination in Cinque Terre. The journey takes from 2.5-3 hours, and tickets cost 18-30 euros.