Gws Licensing
Commands google-workspace 26
npx claude-code-templates@latest --command google-workspace/gws-licensing Content
Google Workspace Licensing
Execute Google Workspace Licensing operations: $ARGUMENTS
Prerequisites
- Google Workspace CLI (
gws) must be installed - Authentication configured: Run
gws auth statusto verify - Review
gws licensing --helpfor all available commands
Available Resources and Methods
licensing (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
bash
gws licensing <resource> <method> [flags]API Resources
licenseAssignments
delete— Revoke a license.get— Get a specific user's license by product SKU.insert— Assign a license.listForProduct— List all users assigned licenses for a specific product SKU.listForProductAndSku— List all users assigned licenses for a specific product SKU.patch— Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.update— Reassign a user's product SKU with a different SKU in the same product.
Discovering Commands
Before calling any API method, inspect it:
bash
# Browse resources and methods
gws licensing --help
# Inspect a method's required params, types, and defaults
gws schema licensing.<resource>.<method>Use gws schema output to build your --params and --json flags.
Usage
bash
# List available resources and methods
gws licensing --help
# Inspect method schema before calling
gws schema licensing.<resource>.<method>
# Execute command with arguments
gws licensing $ARGUMENTSTask
Execute the requested Licensing operation: $ARGUMENTS
Verify Prerequisites
- Check
gwsis installed:gws --version - Verify authentication:
gws auth status - Review available commands:
gws licensing --help
- Check
Inspect Method Schema
- Before calling any method, inspect its parameters
- Use
gws schemato understand required fields - Review parameter types and constraints
Execute Operation
- Build command with appropriate flags
- Use
--paramsfor query/path parameters - Use
--jsonfor request body - Handle pagination with
--max-resultsor--page-token
Error Handling
- Check command output for errors
- Review API quotas and rate limits
- Handle authentication issues
- Retry transient failures
License: Apache License 2.0
Source: Google Workspace CLI
Original Skill: gws-licensing