A protocol is presented for the synthesis of core-shell lanthanide-doped upconversion nanocrystals (UCNs) and their cellular applications for channel protein regulation upon near-infrared (NIR) light illumination.