The 31-year-old Cespedes was in the starting lineup in left field, hitting third in the first game.
The slugger was batting .270 with six home runs and 10 RBIs before to spraining his left hamstring, which sidelined him on April 28.
Manager Terry Collins said Friday that Cespedes also could be available to pinch-hit in the second game.
"I've got a long routine, which usually takes me about an hour to get through, so I think it's going to help me stay healthy," Cespedes told reporters through an interpreter before Saturday's first game. "They are waist, back, leg exercises. I think that my elasticity will improve."
After the hamstring injury, Cespedes took a break of nearly two weeks after he had tightness in his right quadriceps.
Cespedes played one game for Class A St. Lucie on Thursday and came out of the game with no issues.
"He accumulated a lot of at-bats even though he hadn't been in games," Collins said Friday. "We think he's ready."