As the planet orbits the star, it causes a wobble in the star's motion, which can be detected as a small but observably large Doppler effect.