CLICommands

term

snug term <COMMAND>

Policy document publishing and consent tracking.

Subcommands

CommandWhat it does
publishPublish a policy document version
documentsDocument operations
bundleBundle operations
acceptRecord acceptance for a document or bundle
batch-acceptRecord consent for many entries from a JSON file (array of consent objects)
revokeRecord explicit revocation
checkCheck whether an action is allowed
statusShow consent status for a user
signatureStore visual signature metadata
exportGenerate a signed compliance export
verify-exportVerify 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_01HV

Next

On this page