Fans reacted with delight when the double Olympic champion said his training was going well - and his next stop was Glasgow 2014.
There has been doubt over his fitness after he missed last week's Diamond League competition in the city because of illness.
But he posted a series of pictures of himself training in the south of France on his Facebook and Twitter page.
Next to the photos he posted the caption: "In Font Romeu...training's going good! Next stop...Commonwealth Games!"
The star, who won the 5000m and 10,000m gold at London 2012, has only raced once since his marathon debut in London in April.
He was due to compete in a two-mile event on Saturday at Hampden but he was admitted to hospital at the start of the month in the USA after suffering from stomach pains.
Now Farah, who is arguably the main attraction at the Games, is expected to compete in the 5000m final on Sunday, July 27 and the 10,000m final on Friday, August 1 in Glasgow.
His supporters rallied around him when they heard the news.
On Facebook Angela Glass said: "So glad you are going to the Commonwealth Games, it wouldn't be the same without you."
Sharon Williams said: "Go Mo, will be screaming at my TV for you."
Russell Ayre said: "We need you at the Commonwealth Mo! Hope you get fully fit in time."
Organisers of the sporting event welcomed the news which comes after several high-profile stars pulled out of the Games.
Heptathlete Jessica Ennis-Hill will not be at the competition after taking time off to have a baby and cyclist Mark Cavendish injured his shoulder during the Tour de France earlier this month.
Other athletes are flooding into the city and settling into their home for the next few weeks.
A Glasgow 2014 spokeswoman said: "We are delighted to hear Mo Farah confirm that he will be able to compete in the Commonwealth Games.
"Around 4500 elite athletes from around the Commonwealth are starting to arrive in Glasgow and we are making final preparations to create a wonderful stage for them to shine."