Mayor de Blasio quietly signed an executive order last month creating an ­office known as the New York City Cyber Command — a new outfit that’s intended to protect the city against online attacks and other cyber-threats.

Without issuing a press release, Hizzoner signed the order on July 11 that launched the first such centralized cyber-defense of the city.

City officials declined to provide a budget for the new initiative, saying it would come out when the budget is modified in the fall.

They also wouldn’t provide a precise office head count but put the figure at several dozen employees — on top of the unknown number of cyber-security workers already employed throughout various agencies.

One of the leaders of the new team is Colin Ahern, a former US Army captain who’s serving as the city’s deputy chief information-security officer.

At a recent talk on the initiative in Las Vegas, Ahern boasted that the group is getting “budgetary authority” over the city’s entire cyber-defense system.

“For a government to give a cyber-defense organization budgetary approval is akin to if the director of national intelligence could tell other intelligence community partners what they could and could not spend their money on,” he said last month.