President Trump said Wednesday that “all options are on the table” if Venezuelan dictator Nicolas Maduro doesn’t peacefully leave office after Trump recognized the head of Venezuela’s National Assembly as president of the strife-torn country.

“We’re not considering anything but all options on the table. All options, always, all options are on the table,” said Trump, when asked about military intervention, an action he first mentioned in 2017.

Trump earlier recognized Juan Guaido as president and hundreds of thousands of anti-government protesters swarmed the streets of Caracas, the capital, and other cities.

“Today, I am officially recognizing the President of the Venezuelan National Assembly, Juan Guaido, as the Interim President of Venezuela,” Trump said in a statement.

“In its role as the only legitimate branch of government duly elected by the Venezuelan people, the National Assembly invoked the country’s constitution to declare Nicolas Maduro illegitimate, and the office of the presidency therefore vacant,” he continued.

“The people of Venezuela have courageously spoken out against Maduro and his regime and demanded freedom and the rule of law.”

The commander in chief said he would use America’s economic and diplomatic powers to help restore democracy to the country, and he encouraged other nations in the Western Hemisphere to also recognize Guaido.

He also warned Maduro — who remained in Miraflores, the presidential residence in Caracas — about crackdowns on Venezuelan protesters or reprisals against opposition figures.

“We continue to hold the illegitimate Maduro regime directly responsible for any threats it may pose to the safety of the Venezuelan people. As Interim President Guaido noted yesterday: ‘Violence is the usurper’s weapon; we only have one clear action: to remain united and firm for a democratic and free Venezuela,’ ” Trump concluded.

Maduro and his supporters — which includes the military, so far — planned a counter-protest Wednesday at Miraflores.

Team Trump hopes to exploit the outrage sweeping the impoverished nation against hardline Maduro, whose economic policies have left the country on the brink of collapse.

Vice President Pence had earlier delivered a video message to the Venezuelan people calling Maduro “a dictator with no legitimate claim to power,” and “recognizing the National Assembly as the last vestige of democracy” in the country.

The senior official said the administration had ‘barely scratched the surface” of the economic sanctions that could be slapped on the country.