There are several theories about this, and one of them is by volcano eruption.
So...one theory is that cells came to Earth from comets or from aliens seeding the planet...the operative term is theory.
The single-celled organism that is most closely related to the first cell to exist on Earth is likely a type of archaea. Archaea are ancient single-celled microorganisms that are considered to be one of the earliest life forms on our planet. They share many genetic and biochemical similarities with the first cells that appeared on Earth.
There is not yet a definitive answer as to how cell membranes first evolved. One hypothesis is that cell membranes are descendant from naturally occurring micelles which combined with the first self-replicating molecules quite coincidentally. Another possibility is that cell membranes evolved as a competetive mechanism through active selection.
The first cells appeared about 3 billion years ago. This is based on fossel records (the earth is about 4.5 billion years old)
prebionts
Osteoprogenitor cells, also known as mesenchymal stem cells, are the first type of cell to appear during osteogenesis. These cells have the potential to differentiate into osteoblasts, which are responsible for bone formation.
The most primitive life on Earth are single-celled organisms such as bacteria and archaea. These organisms have simple cell structures and are thought to have been some of the first life forms to appear on Earth billions of years ago.
Mid to late nineteenth century.
Prophase
prophase
In the Cell Saga of Dragon Ball Z, Goku sacrifices himself by teleporting Cell to King Kai's planet and then self-destructing in order to save Earth and its inhabitants. He is later revived with the Dragon Balls.
S phase