"Amid this blessed reason as well as responding to the calls of brother and friendly nations for the cessation of hostilities during this holy month, the main command of the armed forces announces the cessation of all hostilities", Mismari said in a televised conference on late Wednesday.
He pointed out that any breach of truce by the LNA's rivals would be followed by a harsh response.
On Monday, Haftar announced that the LNA was quitting the Skhirat agreement, which had led to the formation of the UN-backed Government of National Accord (GNA). He also said that the LNA was now taking control of the country.
The situation in Libya escalated on 13 April when the Tripoli-based GNA said that it had launched a rapid offensive west of the country's capital and taken control over the cities of Sabratah and Surman. A day later, an official from the GNA's Ministry of Foreign Affairs said that Tripoli-based forces had captured the coastal area from the city of Misrata, located east of the capital, to the city of Zuwara close to the Tunisian border. On 21 April, Chairman of Libya's High Council of State in Tripoli, Khalid al-Mishri, expressed hope that the LNA would be defeated during Ramadan.
Libya has been torn apart between two rival governments, an elected parliament in the country's east, supported by the LNA, and the GNA in the country's west, for years since the assassination of the country’s long-time leader Muammar Gaddafi in 2011.