Sorry but, at the moment, you cannot get your progress saved on freeCodeCamp when you run these locally. You must complete them in the browser while on the freeCodeCamp site to save your progress. More info here.
If you complete any of the certification projects locally, you can save the code and then open the same project in the browser, paste in the code/db’s, run the tests, and it should pass there so you can claim the cert.