How can you treat a cold sore?

Wait it out. You can be treated with acyclovir, but just as easy to wait it out for the 7 -10 days these usually last.
Antiviral therapy. A course of antiviral therapy such as Valtrex (valacyclovir) or topical antiviral.