This is mentioned in the Brahmanda Purana. It is related to the Bhandasura episode when the world was facing a Pralaya like situation. Goddess then have to be invoked from Chidagni Homa Kunda.
Quoting from here:
H. At the end of this great fire sacrifice, all of you (the performers
of the Yaga) should jump in to the Homa Kunda (fire pit). While doing
so, you must possess absolute devotion.
I. Then, Lalita Parameshwari will manifest.
J. She will be seated in a chariot called Chakra Raja Ratha.
K. She will create Parabrahma in the name of Kameshwara and will have
Him as Her consort.
L. This couple will re-create the entire universe, which will turn out
to be more beautiful than the previous creation.
M. Lalita Parameshwari will bring Manmatha back to life.
This above passage provides the background.
The next portion of the story is found here. It describes the secondary creation of Goddess Lalita.
She extended Herself in both male and female forms and continued the
process of creation.
A. From the left eye, which was of the nature of Soma (moon) came
Brahmaand Lakshmi Devi.
B. From the right eye, which was of the nature of Soorya (sun) came
Vishnu and Parvati.
C. From the third eye, which was of the nature of Agni (fire), came
Rudra and Sarasvati.
D. Lakshmi & Vishnu, Shiva & Parvati and Brahma & Sarasvati became
E. Lalita Devi directed them to continue the process of Creation.
She herself continued to create certain things.
(i) From her long hair she created darkness.
(ii) From her eyes, she created the sun, the moon and the fire.
(iii) From the pendent hanging in front of her forehead came the
(iv) From the chain above her forehead came the nine planets.
(v) From the eyebrows, she created the penal code.
(vi) From her breath, she created the Vedas.
(vii) From her speech, she created poetry and plays.
(viii) From her chin she created the Vedangas.
(ix) From the three lines in her neck, she created various Shaastras.
(x) From her breasts, she created mountains.
(xi) From her mind, she created the power of bliss.
(xii) From her fingernails, she created the 10 incarnations of Vishnu.
(xiii) From her palms, she created the Sandhyas.