1-Deploy Data Guard will apply on standby or prod database or the both?

Example:
% cd $ORACLE_HOME/dataguard/bin
% ./dgdeploy

2- execute switchover will switch from prod to standby the another execute of switchover will execute the reverse on production database?