NEW YORK — New York City schools are set to begin offering vocational school opportunities for boys for the first time in more than 20 years.

The city’s new initiative will allow boys to earn credits toward college, with some courses offered in the fall, and other courses offered over the summer, said Eric Mazzola, the city’s assistant commissioner of education.

The initiative, part of Mayor Bill de Blasio’s education and employment plan, comes as the city faces the largest enrollment growth in decades.

“The new program is an opportunity for boys to become more self-sufficient and self-reliant in the years ahead,” de Blasio said in a statement.

This is a very positive step forward and will allow for more students to earn certificates and diplomas and gain a competitive edge on the competition,” said Sarah O’Brien, executive director of the New York Community Charter Schools Association.

De Blasio’s plan, which also calls for a moratorium on mandatory tests for high school graduates and a review of high school graduation rates, is part of a broader overhaul of the city government and education system that includes overhauling how it funds schools, opening up schools to more students and opening up higher education to more families.

About 6,500 children are currently enrolled in the city charter schools, which have been under de Blasio for years.