A CLI tool for interacting with Google Workspace APIs (Gmail, Drive, Calendar, etc.) with built-in audit logging. Current stable version is v0.22.5. Released as part of the googleworkspace/cli project with regular releases every 1-2 weeks. Key differentiators: dynamic command surface generated from Google Discovery Service, audit log support for tracking commands, prebuilt binaries with native OS keychain integration. ESM-only via npm package or direct binary download.
npm install gws-with-audit-logVerified import paths — ran on the pinned version, not inferred.
Shows authentication, sending an email via Gmail API, and enabling audit logging.
Use import syntax and Node >=14.
Add --draft flag explicitly if saving drafts is intended.
Use --from with explicit display name to override.
Ensure native OS keychain is available and not corrupted.
Watch release notes for stabilization.
Use: import gws from 'gws-with-audit-log' (ESM only)
Run: gws auth login with required scopes
Add "type": "module" to package.json or use .mjs extension.
Install globally: npm install -g gws-with-audit-log