GAM is an open source command line tool for making changes to objects in the Google Admin console. It is thoroughly documented at the Github Wiki. The options available for use with GAM are displayed in specific sections on the right-hand side of the GAM Wiki.
I always quote Peter Parker's Uncle Ben when discussing a tool like this.
"With great power comes great responsibility"
GAM is a powerful tool, and it could be easy to break a lot of stuff rapidly. Google support may not be super forgiving if you tell them you deleted all your user accounts while using GAM.
If you need help, this page should be your next click.
In my case, I needed a way to suspend a little over 1700 accounts that had been improperly processed for a few years. Below is the command I used to suspend all the user accounts in the Inactive Students organizational unit. Please note suspend 0 will make accounts active and suspended 1 will suspend the account.
gam ou "/Inactive Students" update user suspended 1
I should say, I'm not really sure what GAM stands for. I assume it is Google Admin Manage(r) or something like that. I couldn't find it listed anywhere.