@googleworkspace/cli

Manage Google Workspace resources via CLI with auto-generated commands.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Google Workspace CLI — dynamic command surface from Discovery Service

Commands

gws

Examples

list all users in my Google Workspace domain$ gws directory users list
create a new Google Workspace user account$ gws directory users create --given-name John --family-name Doe --primary-email john.doe@example.com
get details about a specific user$ gws directory users get --user-key john.doe@example.com
list all groups in the organization$ gws directory groups list
update user email forwarding settings$ gws gmail users settings forwardingAddresses list --user-id john.doe@example.com