How to add IP address to whitelist (via command prompt)?

Hello,
How to add IP address to whitelist (via command prompt)?

Add IP address to what, Fail2ban?

If you’re talking about the FreePBX Firewall, see the trust action on this page:
https://wiki.freepbx.org/display/FPG/Firewall+Command+Line