apg command