CLICommands
term
snug term <COMMAND>Policy document publishing and consent tracking.
Subcommands
| Command | What it does |
|---|---|
publish | Publish a policy document version |
documents | Document operations |
bundle | Bundle operations |
accept | Record acceptance for a document or bundle |
batch-accept | Record consent for many entries from a JSON file (array of consent objects) |
revoke | Record explicit revocation |
check | Check whether an action is allowed |
status | Show consent status for a user |
signature | Store visual signature metadata |
export | Generate a signed compliance export |
verify-export | Verify a previously generated compliance export |
Run snug term <command> --help for that command's own options.
The global options apply everywhere.
Examples
snug term publish --name tos --version 4.0.0 --language en-US --title "Terms of Service" --content-hash sha256:a43f --mandatory
snug term publish --name commercial_use --version 2.0.0 --content-hash sha256:bb12 --mandatory --action commercial.use
snug term documents list --name tos
snug term documents get --document-id doc_tos_v4_0_0_en_US
snug term bundle create --name core_terms --documents doc_tos_v4_0_0_en_US,doc_privacy_v3_0_0_en_US --mandatory
snug term accept --user usr_01HPRIME --document doc_tos_v4_0_0_en_US
snug term accept --user usr_01HPRIME --bundle bundle_core_terms
snug term revoke --user usr_01HPRIME --document doc_tos_v4_0_0_en_US --reason user_request
snug term check --user usr_01HPRIME --action commercial.use
snug term status usr_01HPRIME
snug term signature --user usr_01HPRIME --document doc_tos_v4_0_0_en_US --signature-hash sha256:cc34
snug term export --user usr_01HPRIME
snug term verify-export --export-id policy_exports_01HVNext
- term guide - what the service does and when to reach for it.
- API reference - every endpoint these commands call.
- CLI reference - global options, output modes, and exit codes.