A four-run fourth inning had put the Marlins in front, 4-1.
Giancarlo Stanton got the inning going with a double, and he advanced to third on Angel Castro's wild pitch on ball four to Garrett Jones. With runners on the corners, Jarrod Saltalamacchia lined an RBI single to center. Marcell Ozuna delivered a run-scoring double and Greg Dobbs lifted a sacrifice fly. Jeff Mathis' RBI double capped the frame.
The Cardinals pushed across two runs in the seventh off Carter Capps to trim Miami's lead to one run. Travis Tartamella singled and Rafael Ortega doubled, putting runners on second and third. Stephen Piscotty lifted a sacrifice fly, and the second run of the inning scored on a fielder's-choice grounder by Luis Mateo, who was credited with an RBI.
The Cardinals took the first lead of the game with an unearned run in the second inning on Randal Grichuk's triple over the head of Ozuna in straightaway center. Xavier Scruggs, who had reached on Dobbs' error, scored from first.
"I felt like it was a pretty good pitch," Marlins starter Nathan Eovaldi said. "I kept it down, but he smoked it."
St. Louis scratched out three hits off Eovaldi, who projects as Miami's No. 2 starter.
Eovaldi's fastball maxed at 97 mph, and he struck out one. The right-hander successfully pounded the zone. Of his 35 pitches, 27 were strikes.
"The main thing was to go out there and throw strikes, which I did," he said. "I threw a lot of them that were just centered. I feel like that's why they fouled off so many pitches. I wasn't throwing my offspeed more earlier in counts."
St. Louis right-hander Lance Lynn threw two scoreless innings, striking out one and allowing one hit.
"For the first time out, the ball felt good," Lynn said. "I came out of it healthy. That's all that matters. For me it's just getting the pitches in, getting the pitch count built up. Today it was just getting back out there for the first time getting used to it."
Up next: The breakout pitcher of the 2013 postseason, Michael Wacha, will make his spring debut on Sunday when the Cardinals face the Mets. First pitch is scheduled for 12:05 p.m. CT. Wacha enters the spring competing for a rotation spot and looking to build on his October success, which included five playoff victories. Lefty Tim Cooney and right-hander Zach Petrick, the organization's reigning Minor League Pitcher of the Year, are scheduled to follow Wacha.