(CNN) Harry Potter is back for another round of magic, struggles with the darkness and parents.

This time, Harry's the dad, struggling with his own son.

The eighth installment of the Harry Potter series, the two-part play, "Harry Potter and the Cursed Child," will be published as a book this summer, author J.K Rowling announced on her Pottermore website Wednesday.

The "special rehearsal edition" script book will be available at midnight on July 31, a day after the Harry Potter play opens in London.

The newest Potter installment, the first official Harry Potter story to be presented on stage, is based on an original new story by Rowling, Jack Thorne and John Tiffany, and is written by Thorne.

Omg an 8th #HarryPotter installment is being published & muggles everywhere can't even 😭⚡️✨🙀 https://t.co/VKAgErKWyn pic.twitter.com/pSfR1LccJ4

"We are so thrilled to be publishing the script of 'Harry Potter and the Cursed Child,'" said David Shelley, CEO of Little, Brown Book Group, in a statement. "J.K. Rowling and her team have received a huge number of appeals from fans who can't be in London to see the play and who would like to read the play in book format -- and so we are absolutely delighted to be able to make it available for them."

We last saw Harry saying goodbye to his children at Platform Nine and Three-Quarters, 19 years after the Battle of Hogwarts, in the epilogue of "Harry Potter and the Deathly Hallows."

"Harry Potter and the Cursed Child" picks up after that scene, with father of three Harry Potter employed at the Ministry of Magic. Both Harry and his son Albus struggle with their family legacy and against the darkness.

All i can say to this shameless attempt at cashing in on #HarryPotter is TAKE MY MONEY!!!!! TAKE IT ALL!! https://t.co/oI7aPuXpcV — Abhijeet Barve (@Naam_Hai_Bulla) February 10, 2016

The eBook will be published simultaneously with the print editions by Pottermore, Rowling's digital entertainment and e-commerce company, in collaboration with Little, Brown Book Group in the United Kingdom; and Scholastic in the United States and Canada.

The limited preview edition is not the final edition, a move made to allow the play's creative team to make changes while the play is in previews, according to the publisher. A "Definitive Collector's Edition" will be available later.

Rowling's best-selling, seven-volume Harry Potter series was published between 1997 and 2007 and has sold over 450 million copies worldwide.