STL files are included for CR2016, CR2025, CR2032, and CR2477 coin cells. The caps should be printed with supports for the coin cell slot. I've found that organic supports work best. They can be a bit tricky to remove from the narrower slots.
All four version require a spring. Part # 9657K124 from Mcmaster Carr works well.
The OpenSCAD file is provided so you can modify the design as you like. You do need to install the BOSL2 library into your copy of OpenSCAD. Instructions are at: https://github.com/BelfrySCAD/BOSL2#installation.
The OpenSCAD file also includes two additional experimental versions. One for LR44 cells and another for the ignition caps used to start thermite welding charges for railroad rails. (Special request for a friend whose day job is working on the railroad). The LR44 version requires a different spring and I'm still looking for one that works well. If you find one leave a comment and I'll add it to the comments in the code.
The author marked this model as their own original creation.