QUEENS, N.Y. - Rapper Cardi B appeared in Queens criminal court Friday to be arraigned on charges of two counts of reckless endangerment and one count of assault.

The Bronx native is accused of ordering an attack on two bartenders at a Queens strip club back in August, one of whom she believed slept with her husband, rap artist Offset.

Cardi B's appearance Friday enabled her to avoid arrest, after she failed to appear as requested last Monday, and a judge threatened to issue a bench warrant for her.  

She turned herself into police in October. 

The 26-year-old, whose legal name is Belcalis Almanzar, arrived right as the doors opened at the courthouse Friday, decked out in a fur coat, a floppy hat and a new rainbow hairdo.

The prosecution asked for the rather animated Cardi B to be placed on $2,500 bail, but the judge released her on her own recognizance saying she is not a flight risk.

However, the judge did issue an order of protection against the rapper, saying if she contacts the two Queens bartenders, especially via social media, she could be arrested - to which Cardi B nodded her head in agreement.

Cardi B's court appearance came on the same day she was nominated for five Grammy awards. 

Her next court date is set for January 31.