The man was granted interim name suppression until his next hearing.
He faces four charges, one of intent to cause grievous bodily harm, intent to injure, intentionally damaging a vehicle and possession of a firearm.
Police received multiple reports of shots heard at an address in Clendon Park shortly before 4.30am.
It's understood two people suffered pellet wounds. One was taken to Middlemore Hospital but reportedly not in a life-threatening condition.
According to a person close to the incident, shots were allegedly fired after an early morning argument between a man and a woman.
Many of the neighbours only a few houses away were unaware of what had happened when speaking with the Herald, some saying they woke up to find police tarp wrapped around their cars as part of the cordon.
The man is due to reappear in court on June 22 to enter a plea.