The man whose lifeless body was found rolled up in a red carpet outside a Harlem Starbucks was shot in the chest, according to the NYPD, which ruled his death a homicide, cops said Friday.

The 27-year-old was identified as Anthony Lewis, according to the NYPD. The city’s Medical Examiner has not determined the cause of death.

The grisly find was made just before 6 a.m. on Thursday at the corner of West 145 Street and Bradhurst Avenue by a passerby who noticed two feet sticking out of the carpet, cops said.

The witness quickly called the police who found the unconscious and unresponsive man with signs of head trauma wrapped in a cardboard box inside of the carpet, authorities said.

The man was pronounced dead at the scene.

Two men used a Target shopping cart to push the corpse through the streets of Harlem, according to surveillance footage obtained by the Post.

No arrests have been made.